Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-09-29 13:04:39

ahmeteid
Member
Registered: 2022-08-15
Posts: 61

gtk.css doesn't override the theme of the selector items

i tried to overide the theme of taskmenu(zorinlitemenu) plugin to make it transport, i go to ~/.config/gtk-3.0: and add gtk.css file and added that content:
#zorinmenulite-window.background {
     color: #FFF;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.8);
     background: rgba( 10, 10, 10, 0.5);
}

Last edited by ahmeteid (2022-09-29 13:05:13)

Offline

#2 2022-09-29 15:46:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,528

Re: gtk.css doesn't override the theme of the selector items

Try:

#zorinmenulite-window.background {
     color: #FFF;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.8);
     opacity: 0.5;
}

Offline

#3 2022-09-29 16:20:04

ahmeteid
Member
Registered: 2022-08-15
Posts: 61

Re: gtk.css doesn't override the theme of the selector items

ToZ wrote:

Try:

#zorinmenulite-window.background {
     color: #FFF;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.8);
     opacity: 0.5;
}

it didn't work too, i don't know , may be that plugin (zorinmenulite) has different  selector name.

Offline

#4 2022-09-29 16:45:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,528

Re: gtk.css doesn't override the theme of the selector items

It works for me.
zorin.png

Do you have anything else in your gtk.css file that might be overriding it?

Offline

#5 2022-09-29 17:21:23

ahmeteid
Member
Registered: 2022-08-15
Posts: 61

Re: gtk.css doesn't override the theme of the selector items

ToZ wrote:

It works for me.
https://i.ibb.co/3mYxVrz/zorin.png

Do you have anything else in your gtk.css file that might be overriding it?

no, that is preview of the path and the content of gtk.css
https://imgur.com/uReOgRJ.png

Offline

#6 2022-09-29 19:34:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,528

Re: gtk.css doesn't override the theme of the selector items

It's hard to tell from your image, but does your gtk.css code have an open and closed curly bracket?

Which distro and Appearance theme are you using? Maybe the theme itself has something that is interfering.

Offline

#7 2022-10-03 13:23:03

ahmeteid
Member
Registered: 2022-08-15
Posts: 61

Re: gtk.css doesn't override the theme of the selector items

ToZ wrote:

It's hard to tell from your image, but does your gtk.css code have an open and closed curly bracket?

Which distro and Appearance theme are you using? Maybe the theme itself has something that is interfering.

I'm using zorin lite distro, and i'm using the default theme of zorin(zorin blue dark theme), I asked about the theme in zorin forum, but they think that not related to the theme of zorin, and they think that may be something in the code of the plugin(zorinmenulite).
but the transparent of the plugin worked good with u, may be because u r using new version of Ubuntu, and zorin use old version?

Last edited by ahmeteid (2022-10-03 13:26:17)

Offline

#8 2022-10-03 19:36:32

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,528

Re: gtk.css doesn't override the theme of the selector items

I did my testing above on Arch Linux using the GTK Inspector. Using this process, and that snippet, I was able to generate the transparent menu window.

However, if I add the code to the gtk.css (on either Arch Linux or Zorin Lite Xfce 16.1), it doesn't work. Something within ZorinMenu itself seems to be preventing this. I'll see if I can find time to dig a little deeper to see if I can figure out why. MY first guess is that the CSS styling in Zorin Menu is somehow being forced. Second guess is that another set of css styling is overriding the #zorinmenulite-window element.

Offline

Board footer

Powered by FluxBB