Fix for GTK 3 window buttons

8 respuestas [Último envío]
kenogo
Desconectado/a
se unió: 11/20/2019

Hey,

I've encountered the problem with Trisquel's theme that GTK 3 applications have BlueMenta's window buttons instead of Greybird's, which looks inconsistent. This has also been adressed here, with the added remark that even Greybird's buttons have inconsistent spacing: https://trisquel.info/en/wiki/status-package-helpers-etiona

I fixed both of these problems. The solution was to go into /usr/share/themes/Trisquel/gtk-3.0/window-controls/ and delete all png-files in there. Then I copied all svg-files from /usr/share/themes/Trisquel/metacity-1/ to /usr/share/themes/Trisquel/gtk-3.0/window-controls/. Finally, I had to edit /usr/share/themes/Trisquel/gtk-3.0/window-contrls.css to recognize the new buttons. You can find the modified file contents here: https://pastebin.com/raw/TRQgdJSh

Here is a screenshot of the result:

Note that the buttons still have slightly larger spacing. This can be fixed by adding a "margin: -1px" CSS entry. However, IMO, it actually looks much better with the slightly larger spacing because the window border is larger, too.

AdjuntoTamaño
Bildschirmfoto zu 2020-12-10 16-45-08.png9.64 KB
kenogo
Desconectado/a
se unió: 11/20/2019

Screenshot of the current default behavior in Trisquel

P.S.: I don't know why the resolution is worse for GTK3. Still investigating this.

kenogo
Desconectado/a
se unió: 11/20/2019

Found a better way to do this. When the buttons are part of the icon theme, the resolution issue is fixed. You can check out my final result here: https://gitlab.com/kenogo/trisquel-improved-gtk-theme

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

Nice! I'm no longer involved with Trisquel development, but this issue was something that bothered me back when I was helping to get Triqsuel 9 ready.

Trisquel's GTK theme and icon theme are both part of the trisquel-packages repository,

=> https://gitlab.trisquel.org/trisquel/trisquel-packages/-/tree/master/9.0/trisquel-gtk-theme

=> https://gitlab.trisquel.org/trisquel/trisquel-packages/-/tree/master/9.0/trisquel-icon-theme

so submitting a merge request there would be the first step in order for your changes to become part of Trisquel.

kenogo
Desconectado/a
se unió: 11/20/2019

Thanks for the information. I'll be doing that soon.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

I forgot, are you a Debian guy now?
--
Sent from my CalyxOS device with K-9 Mail. Please excuse my brevity.

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

I have my own custom distribution based on Debian.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

Oh, no. https://xkcd.com/927/
--
Sent from my CalyxOS device with K-9 Mail. Please excuse my brevity.

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

I'm not attempting to meet everyone's use case. I don't believe that a single distribution can optimally meet everyone's use case, because people's needs and desires often conflict. It is natural and good for different distributions to focus on serving different kinds of users, sharing work where possible, and going their own direction when necessary. Those who attempt to get everyone to use the same distribution are the kind of people being made fun of in that comic.