You are not logged in.


I've got a GTK theme I've created and I've got quite a few things ironed out except for one thing I can't figure out: What is the GTK CSS selector for, near the bottom of the Xfce theme switcher, where it says "Set matching Xfwm4 theme..."? Right now, it's white on white, other than for the blue link, and I'm hung up here, and I'd like to know what the GTK CSS selector is for that text label and preferably as little else as possible lest I have problems with black-on-black text somewhere else.
What I'm trying to do here with the theme is, it has jet-black backgrounds with white text, but with a white base and black text (I've also created all-light and all-dark variations, which are much more straightforward than this). Once I get this bug fixed, it's also gonna be the basis for a camouflage colors theme (Army green background w/ yellow text, gold base w/ black text, and brown highlights with yellow text), a patriotic theme (dark blue background and red highlights), and a Christmas theme (dark green background and red highlights).
I'm on Debian Trixie, which has Xfce 4.20. Any ideas for the CSS selector that should be used here, preferably without rendering anything else unreadable?
EDIT: I'm perfectly fine with the label in question being either black on white or white on jet black, I don't care which. All I care about is it being legible.
Thanx in advance,
Fred in West Plains, MO
Last edited by fredbird1967 (2026-07-02 06:11:01)
Offline


Hello and welcome.
That dialog is a generic dialog and that switch can be accessed via:
.dialog-vbox switch {background-color: green}
.dialog-vbox switch slider {background-color: red}The dialog is also used in other areas of Xfce and if you're okay with the change affecting switches in all these dialogs, then that should be all you need. However, if you want to target just this dialog, you can walk the widget tree and hope its unique:
.dialog-vbox>notebook>stack>box>box switch {background-color: green}
.dialog-vbox>notebook>stack>box>box switch slider {background-color: red}Important note: some themes use gtk assets here (look in the assets folder of the theme's gtk-3.0 folder). If so, you can simply edit the image there.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


OK, just tried it...nope, still white on white. 
EDIT: I found it on my own. It's the following:
notebook > stack:not(:only-child)
However, that has also affected the background of the Personal, Hardware, System, and Other labels of the main screen in xfce4-settings (black on jet black). I also found an entry that was white-on-white in the xfce4-screenshooter dialog. I feel like I've opened up quite a can of worms with this one...but where there's a will, there's a way. And hey, I've already corrected several other contrast issues so far.
Added later 3 h 53 min 20 s:
Consider this one SOLVED! I've solved what I posted on here about, plus I found other contrast issues as well and have fixed those. Thanx, y'all!
PS -- is there a way to edit the subject of this post so that I can mark it as solved?
Last edited by fredbird1967 (2026-07-04 16:52:48)
Offline


Edit your first post and pre-pend "[SOLVED]" to the subject line.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 527.79 KiB (Peak: 528.77 KiB) ]