Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-02-13 21:12:52

xaxazak
Member
Registered: 2016-08-04
Posts: 5

(support or themes?) - make active panel tab darker

Wasn't sure if this should go in the Support or Theme subforum as it fits both. Feel free to move it.

I just wanted to change the color of the active panel tab as it's almost the same color as the inactive ones. I'm using theme Adwaita theme.
I spent about 10 minutes trying to figure out how to do this and gave up when I hit /usr/share/themes/Adwaita/gtk-3.0/gtk.css: /* Adwaita is the default theme of GTK+ 3, this file is not used */, and a message saying the values are stored in a binary...
I don't want to change to a new theme, I like this one best (even with the above issue unfixed).

Can someone please tell me exactly where I need to enter my hex color code (and, only if you feel like it, explain why it's so very complicated to do something that's IMHO so simple).
Also, I guess I just use "xfce4-panel -r" to update? If not, please tell me what I should do to avoid needing to logout.

Thanks,
Simon.

Offline

#2 2018-02-14 00:24:20

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,066

Re: (support or themes?) - make active panel tab darker

Do you have an xfce4-panel version built with GTK2 or GTK3 (only the newer development versions of xfce4-panel are built with GTK3 and use css files)?

ldd $(which xfce4-panel) | grep -i gtk

The GTK2 version will use the config files in /usr/share/themes/Adwaita/gtk-2.0 or ~/.gtkrc-2.0.

I just wanted to change the color of the active panel tab as it's almost the same color as the inactive ones. I'm using theme Adwaita theme.

For GTK2, Adwaita uses the pixmap engine for drawing the relief and colours on the window buttons (or tasklist) plugin. The actual asset files are located in the assets directory.

For GTK3, it uses gtk.css.

Also, I guess I just use "xfce4-panel -r" to update? If not, please tell me what I should do to avoid needing to logout.

Yes, "xfce4-panel -r" will force a re-read of the GTK configuration files.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2018-02-14 02:19:26

xaxazak
Member
Registered: 2016-08-04
Posts: 5

Re: (support or themes?) - make active panel tab darker

Thanks for that.

libgtk-x11-2.0.so.0 sad

Hmm, so the colors are baked into images for 2.0, but not for 3.0?
Well that answers the question as to why it's so hard, I guess.

For anyone else looking, I made a button here: https://imgur.com/a/LfXDG
Replace "/usr/share/themes/Adwaita/gtk-2.0/assets/button-active.png" with this one. (At least, that's where it is on Xubuntu - remember to back up the original first).

Last edited by xaxazak (2018-02-14 02:37:19)

Offline

Board footer

Powered by FluxBB