Developing a Window Buttons Applet for Mate

For now nope . As I said I am not good with GIMP , but users can make icon themes just like regular icon themes . They need to be in ~/.icons/mate-window-applets/ or global /usr/share/icons/mate-window-applets/ . Then you have to change the theme in dconf on path /org/mate/mate-window-applets/window-buttons/theme . Right now I am porting the project to gnu-autotools so FAQ will be done later when I finish porting it .

I have used icons from Ambiant-mate theme to create the theme for window-buttons
here it is: https://share.riseup.net/#7FLdbq6r4T5kogkb-qo-iA (link will be able only for a week, so if someone miss it - let me know - I'll post new one)
It looks like this:


You are welcome to use it in your releases =)

Can I add it to official release ? Will add you as contributor ?

Sure you can. You can add me as contributor or not, just like you want)

OK. Now I made some new themes, so I have 6 themes to share.


Here are some screenshots:
Ambiant-green

Ambiant-MATE

MATE-Flat

OSX-Flat

and two more...

5 Likes

This is very nice . Glad you took the time .

Hello @IvCHo, I just wanted to let you know that weā€™re tracking a bug that could be fixed by your work:

https://bugs.launchpad.net/ubuntu-mate/+bug/1707291

In the Mutiny layout, when you maximize a window with the ā€œhide windows decorationsā€ option enabled, there is no way to get the buttons back and so minimize or close the window without using ALT+F10 first.
Your applet, provided it could be dynamically activated whenever the current active window is maximized with no decorations, would be an elegant way to work around this problem.

4 Likes

Iā€™ve been thinking the exact same thing! :grinning:

1 Like

Hello all, switched recently from ubuntu gnome.

On Cupertino layout with global menu and ā€œhide windows decorationsā€ this is very amazing.

Nice work. Thanks

1 Like

Yes that is why I made it . Maximus is great for maximizing screen space . Combined with the global app menu it is perfect for screens like mine with resollution 1440x900 and lesser . But the only thing that is missing is the obvius 3 buttons witch everyone knows (close,maximize,minimize).So i tried to redo previous applets that did this but failed .Then I came with my own idea. I tried mimicing the existing applets behaviour like if no window is shown hide the buttons. I am now porting it to vala (suspended untill I get a new charger for the laptop). So if it does not work somehow pls pile a bug report on github and I will fix it and push it to master.

4 Likes

@IvCHo You have PM :slight_smile:ļø

Well I would like to annouce that vala port is doing great . I even added a settings dialog

6 Likes

So happy to hear this great news :slight_smile:ļø Feature freeze is approaching for 17.10 so Iā€™ll work on introducing this to Debian and create a PPA when you have something ready for testing :grinning:

Ok the vala port is ready and pushed to github master branch . Switched to meson build system since it is easier for me and is cleaner for the source code than autotools.


Hope people enjoy this . :smiley:

4 Likes

Hello, if i want to build i get this error:

Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency glib-2.0 found: YES 2.53.6
Native dependency gobject-2.0 found: YES 2.53.6
Native dependency gtk+-3.0 found: YES 3.22.19
Native dependency gdk-pixbuf-2.0 found: YES 2.36.5

Meson encountered an error in file meson.build, line 29, column 0:
Native dependency 'libwnck-3.0' not found

but libwnk-3.0 (3.24.1-1) is installed.

are there other dependencies?

ā€“ Sorry, my english isnā€™t good

Do you have libwnck-3-dev installed ?

ahhh sorry, my mistake, now it works fine. thanks for the great work !!!

EDIT: ok i made a theme with the Numix close, minimize and maximize .svg icons.
So far it looks good, but what do you think about, to use the icons from the already used theme?

if you wish i commit the theme to the brokoli-mate git.

3 Likes

@IvCHo Is the vala port ready for packaging and wider testing?

@IndiJones76
For starters getting support for wm themes , but i found that wmā€™s use xml parser to draw the themes , and gets very complicated for a simple applet . I assure you that I used a very simular method to the other applets of this kind (e.g. xfce4-windowck-plugin and old gnome-window-buttons applet). The only difference is that I use a Gtk.IconTheme to load the pixbuffs . And as for the numix theme it is great :smile: , and you should talk directly to brokoli for this or make your own repository .

@Wimpy Yes it is (At least I think so :laughing: ). I have done some testing and everything should be working properly . The only thing that is missing is translations , but that will be added in later versions .
As for package-ing I have made meson build options to disable a certain applet (for people like me that donā€™t like unnecesary things that I donā€™t wanā€™t to be on my pc) , It should be done after meson --prefix /usr build && cd build like so mesonconf/meson configure -D build-*=true/false . By default all are true. If you package it be shure to package the themes since the default ones suck XD .

@IvCHo

ok I understand the problem.

just another thought:
what if you put all the themes in (for example) data folder and change the field in settings to a select box with all available themes?

I think this could be a good solution and we have just one repository for all.