Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-11-15 15:19:16

cereallain
Member
Registered: 2024-11-15
Posts: 3
LinuxFirefox 132.0

How to stop shading background of disabled buttons?

Apologies for probably using the incorrect terminology but I have tried googling this in like fifty different ways and I can't get it to understand what I'm asking, so here's some screenshots

6pxoDkM.png
AYnkp1s.png
ns7sOBQ.png
WV5qNuJ.png

Whenever there's a button that is disabled (such as the back button in Thunar when I first open it, because there's nowhere to go back to, or the apply button in Synaptic before I've made any changes that could be applied, etc) two things happen:

1) the icon and/or text is shaded grey
2) the background for that button or item or whatever is changed to a different color than it would be if I could click on it

I want it to stop doing the second thing while continuing to do the first thing. In other words, the background for the entire toolbar should be one color regardless of what is or isn't clickable at that particular moment. What settings do I need to change to make that happen?

Last edited by cereallain (2024-11-15 15:21:39)

Offline

#2 2024-11-15 16:14:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,481
LinuxFirefox 132.0

Re: How to stop shading background of disabled buttons?

Hello and welcome.

That's a Gtk theme thing. Which Gtk (Appearance) Theme are you using?

You should be able to change all disabled GTK elements by putting something like this in ~/.config/gtk-3.0/gtk.css:

*:disabled {background-color: transparent}

...but it might need to be adapted somewhat depending on the theme you are using.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-11-15 17:17:25

cereallain
Member
Registered: 2024-11-15
Posts: 3
LinuxFirefox 132.0

Re: How to stop shading background of disabled buttons?

ToZ wrote:

Hello and welcome.

That's a Gtk theme thing. Which Gtk (Appearance) Theme are you using?

You should be able to change all disabled GTK elements by putting something like this in ~/.config/gtk-3.0/gtk.css:

*:disabled {background-color: transparent}

...but it might need to be adapted somewhat depending on the theme you are using.

It's called edoba from a program called either "oomox" of "Themix GUI" depending on which about button I click. Adding that line to the gtk-3.0/gtk.css file in the theme folder didn't do anything but the entire file was just one line that talks about importing something:

"@import url("resource:///org/numixproject/gtk/dist/gtk.css");"

going into the dist folder and adding it to either of the css files there (gtk.css and gtk-dark.css) didn't do anything but those are both also like 6,000 lines long and already have several similar sounding things set that it might be conflicting with or something

Last edited by cereallain (2024-11-15 17:17:45)

Offline

#4 2024-11-15 23:24:14

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,481
LinuxFirefox 132.0

Re: How to stop shading background of disabled buttons?

Adding that line to the gtk-3.0/gtk.css file in the theme folder didn't do anything

I think you misunderstood. In your home folder there should be .config folder (hidden) and in that folder a gtk-3.0 folder. If it doesn't exist, create it. In the gtk-3.0 folder also create, if it doesn't already exist, a gtk.css file. The contents of this file will override all of the directives from the theme file.

In this file (gtk.css) add the above content, then log out and back in again.

I'll have a closer look at this theme.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-11-16 16:56:07

cereallain
Member
Registered: 2024-11-15
Posts: 3
LinuxFirefox 132.0

Re: How to stop shading background of disabled buttons?

ToZ wrote:

Adding that line to the gtk-3.0/gtk.css file in the theme folder didn't do anything

I think you misunderstood. In your home folder there should be .config folder (hidden) and in that folder a gtk-3.0 folder. If it doesn't exist, create it. In the gtk-3.0 folder also create, if it doesn't already exist, a gtk.css file. The contents of this file will override all of the directives from the theme file.

In this file (gtk.css) add the above content, then log out and back in again.

I'll have a closer look at this theme.

not only did that fix it, it prevented it from being an issue in any of the other themes i never actually touched and exported just to test it

Offline

#6 2024-11-16 17:10:05

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,481
LinuxFirefox 132.0

Re: How to stop shading background of disabled buttons?

Good to hear that it worked.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 547.62 KiB (Peak: 548.46 KiB) ]