You are not logged in.
OS: Linux Mint 21 XFCE
To make the highlighted button more obvious, I added the following to ~/.config/gtk-3.0/gtk.css:
button.default { background-image: none; background-color: #D1FFBD; border-width: 4; border-color: #000000 }
.button {
padding: 0;
border-radius: 0;
border-width: 1;
border-color: #000000;
border-style: solid;
color: #fff;
background-image: none
}
This works perfectly in other programs, but LibreOffice Writer ignores most of it. (I don't know why "don't save" is in bright red. My best guess is a setting I changed in the past to try to make the button more obvious, if anyone knows how to get it back to normal that would be great.)
Here's how I'd like it to work (sorry, I did try the img tag but it didn't work):
But when I move over to Cancel or Don't Save with the keyboard it looks like this:
Any ideas and/or suggestions appreciated.
Last edited by begtognen (2023-11-26 15:05:29)
Offline
If you target styles of individual buttons, you can use GTK Inspector
https://wiki.gnome.org/Projects/GTK/Inspector
to try to figure out names or classes of elements you are styling.
Selectors see
https://docs.gtk.org/gtk3/css-overview.html
https://docs.gtk.org/gtk4/css-overview.html
Offline
JayGursky - Thanks so much, this was really helpful. For anyone reading with the same issue, the name of the button in LibreOfficer Writer is:
text-button
Offline
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 522.16 KiB (Peak: 529.34 KiB) ]