numixproject / numix-gtk-theme

A modern flat theme with a combination of light and dark elements.
GNU General Public License v3.0
1.2k stars 228 forks source link

How can I change the active window title bar? #699

Closed AHeinlein closed 6 years ago

AHeinlein commented 6 years ago

Hello, I'd like to change the title bar of the active window to something more distinguishable, e.g. a colored background. What is the easiest way to do that? I'd like to do the change in the source .scss files, not in the resulting .css. I guess the change goes somewhere in the _toolbar.scss, but I have little knowledge of scss. I also read that there are differences between gtk-3.0 and gtk-3.20, is it possible to do the change for both? Thanks a lot!

khurshid-alam commented 6 years ago

This is little complicated. titlebar color (bg/fg) is defined here : https://github.com/numixproject/numix-gtk-theme/blob/master/src/gtk-3.20/scss/_global.scss#L64

Active titlebar is defined here: https://github.com/numixproject/numix-gtk-theme/blob/master/src/gtk-3.20/scss/widgets/_toolbar.scss#L164

Inactive would be the backdrop section: https://github.com/numixproject/numix-gtk-theme/blob/master/src/gtk-3.20/scss/widgets/_toolbar.scss#L172

But ultimately it depends on the window manger as well. Unity paints it's own color in_unity..scss. And same for metacity. And then there is headerbar, titlebar(:not:headerbar)cases. You need to use trial and error to find most suitable color for you.