Originally Posted by
aeronutt
Q: Is there a way to set the "background" color of the selected button?
I know of two ways to go about it.
1. Edit ~/.config/gtk-3.0/gtk.css and add something like this:
Code:
button:focus {
background: lightgray; /*choose any color*/
}
The down side to this is that it will override the focus color for every Gtk app.
2. Create a custom theme. For example on my box the default theme is adwaita. To create a theme named 'yad_theme' do the following:
Code:
mkdir -p ~/.themes/yad_theme/gtk-3.0/
touch ~/.themes/yad_theme/gtk-3.0/gtk.css
Add the following to the file:
Code:
@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained.css");
button:focus {
background: lightgray;
}
Then when you run yad preface it with "GTK_THEME=yad_theme".
i.e. "GTK_THEME=yad_theme yad" should produce a window with the background of the cancel button light gray.
HTH
Bookmarks