Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-08-28 09:27:25

jj48
Member
Registered: 2020-08-28
Posts: 2

Modifying context menu

Hi,

I downloaded the following theme: https://www.xfce-look.org/p/1210386/ and want to do some modifications.

Context menu of minimized windows
Er9vctl.png
Where can I change the background color of disabled entries? Can't seem to find them in the gtk.css.

Any help is much appreciated. I've just started working with themes and css.

Last edited by jj48 (2020-08-28 19:18:52)

Offline

#2 2020-08-28 11:42:04

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Modifying context menu

Hello and welcome.

Try adding the following to either the theme's gtk.css file or to the ~/.config/gtk-3.0/gtk.css override file:

.tasklist menuitem:disabled label { background:none; color: #a9a9a9; text-shadow: 0px 1px rgba(0, 0, 0, 0.1); }

You might want to report this to the theme developer so he can fix it properly.

Offline

#3 2020-08-28 20:02:56

jj48
Member
Registered: 2020-08-28
Posts: 2

Re: Modifying context menu

ToZ wrote:

Try adding the following to either the theme's gtk.css file or to the ~/.config/gtk-3.0/gtk.css override file:

.tasklist menuitem:disabled label { background:none; color: #a9a9a9; text-shadow: 0px 1px rgba(0, 0, 0, 0.1); }

Thank you! I first tried it in the theme's gtk.css but it didn't seem to make a difference. There wasn't a ~/.config/gtk-3.0/gtk.css so I created one and put the above code in there - which leads to the desired result (changed the color from #a9a9a9 to #747474):

hfO92os.png

Thinking I was done modifying the theme, I noticed that the same problem occurs with the menus from the notification area and the network connections. Altering ToZ's solution to affect not only the tasklist but the whole panel solved this issue. My ~/.config/gtk-3.0/gtk.css finally looks like this:

.xfce4-panel menuitem:disabled label {
    background: none;
    color: #747474;
    text-shadow: 0px 1px rgba(0, 0, 0, 0.1); }
ToZ wrote:

You might want to report this to the theme developer so he can fix it properly.

Yes, I'll leave him a message.

Thanks again ToZ for saving me hours of searching around.

Offline

Board footer

Powered by FluxBB