Metacity theming - making normal windows look like GNOME specific windows (corner rounding, button sizes)
I'm making a theme for my Cinnamon desktop and trying to make GTK2/Qt/etc windows visually conform to the GNOME-type windows (the GTK3 ones with integrated titlebar buttons) as best as possible in order to avoid the annoying visual inconsistencies you typically see. Right now the window buttons / title borders are not consistent looking because the normal windows don't have rounded enough of corners and the window button size is too large:
https://i.imgur.com/gH6DxcO.png Ordinary window https://i.imgur.com/LFbmtXV.png Gedit I can't find anything about changing the amount of window rounding in Metacity themes besides a forum post from 12 years ago (which said it was impossible), which obviously might not be still accurate, only that you can turn it on or off. As for the button size, the GNOME theming guide says the `button_width` and `button_height` properties may be used, but if I use these properties, the window decorations simply do not load. Using the `aspect_ratio` property (as "<aspect_ratio name="button" value="2" />"), which multiple older sources say ought to work, yields the following result: https://i.imgur.com/Yarjj2v.png Which is less than optimal, to say the least. The documentation on the themes is very scarce; does anyone know how to do those things or whether they can be done? |
Could this have something to do with client side decorations (CSD)? GTK3 apps (e.g. gedit) would have these. Maybe they don't properly translate the metacity theme.
So the problem is the other way round - GTK3 CSD doesn't read your metacity themes properly? Try disabling CSD completely, see which version you get. Here's a search for CSD theming. |
Quote:
|
Another possibility is to modify the GTK 3 theme so that the CSD header bar looks like the window manager. I did that on my GTK 3 theme. The two can never exactly match, but the difference can be made less jarring.
Ed |
Quote:
Of course you can strive to tell GTK to be more precise about emulating the metacity theme, or make a metacity theme that somehow fits better. Good news: on the GTK side, it's all CSS - overrides should be easy. Apply a "border-radius: ..." to the proper element in ~/.config/gtk-3.0/gtk.css... |
Quote:
|
Quote:
Esp. if GTK3 CSD actually takes hints from the window manager, but I don't know whether it actually does, esp. from metacity which seems to be the old GNOME window manager now used by MATE? Quote:
https://developer.gnome.org/creating-metacity-themes/ and a few more interesting results with a simple search. |
Quote:
Ed |
Quote:
Quote:
I would strongly recommend that in the future, you refrain from smugly "RTFM"-ing when you yourself have clearly not done so. You end up with a bit of egg on your face when someone asks about altering window geometry and you, without reading, link a manual (which I read prior to even asking this question, by the way, because I do believe in looking on my own before consulting LQ) whose description of making alterations to window geometry is, in its entirety: Quote:
|
All times are GMT -5. The time now is 09:03 AM. |