You are not logged in.

#1 2015-07-08 19:09:02

zeroadhesion
Member
From: Sofia, Bulgaria
Registered: 2012-09-06
Posts: 9

Cinnamon + Adwaita theme - some GTK apps are not consistent

Hello,

I have a little annoying problem with Adwaita theme.
Titlebar color of some programs is different from the color of the controls:
Nemo:
uo9kym5.png

Gnome-Terminal:
qHPtifx.png

However, in other programs, such as Firefox and Audacious (GTK3 Theme) there is no problem:
FQ1j8u0.png

Does anyone have a clue how to fix this?

Thanks.

Last edited by zeroadhesion (2015-07-08 19:09:57)

Offline

#2 2015-07-10 10:33:04

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Cinnamon + Adwaita theme - some GTK apps are not consistent

There was a change in GNOME 3.16 whereby Mutter has dropped support for Metacity themes and now uses GTK+ themes for the titlebars. Now I would imagine that Muffin still uses Metacity themes. So perhaps what's happened is that the application colours for the Adwaita GTK+ 3 theme have been tweaked a little in the expectation that the titlebars would also be themed with GTK+ but as Muffin still uses the Metacity theme the colours are now a little out of sync. Just a guess. I found some promising looking solutions in this thread: https://bbs.archlinux.org/viewtopic.php?id=195906

Last edited by Chazza (2015-07-10 10:34:52)

Offline

#3 2015-07-24 13:53:43

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Cinnamon + Adwaita theme - some GTK apps are not consistent

I did some testing and the following should fix this:

Create ~/.config/gtk-3.0/gtk.css with the following content:

/* Always use background color */
GtkWindow {
    background-color: @theme_bg_color;
}

/* Fix tooltip background override */
.tooltip {
    background-color: rgba(0, 0, 0, 0.8);
}

.tooltip * {
    background-color: transparent;
}

and the colour mismatch will be eliminated. This goes for any window manager that uses the Adwaita metacity theme, be it Muffin, Metacity, Marco, Compiz (with GWD) etc.

Edit: I found that changing the menubar colour is not enough. For about dialogues and some applications, the window colour needs to be changed as well.
Edit 2: menubar doesn't need to be specified separately. gtkwindow covers all of it.
Edit 3: add fix for tooltips.

Last edited by Chazza (2015-07-24 15:54:03)

Offline

#4 2015-07-24 22:42:00

zeroadhesion
Member
From: Sofia, Bulgaria
Registered: 2012-09-06
Posts: 9

Re: Cinnamon + Adwaita theme - some GTK apps are not consistent

And that's why I love Arch!
You're just awesome, thank you very much!

Offline

Board footer

Powered by FluxBB