Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-11-24 15:10:28

begtognen
Member
Registered: 2021-10-03
Posts: 15

[SOLVED] How to make LO Writer Pay Attention to Button gtk.css?

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):

correct

But when I move over to Cancel or Don't Save with the keyboard it looks like this:

incorrect

Any ideas and/or suggestions appreciated.

Last edited by begtognen (2023-11-26 15:05:29)

Offline

#2 2023-11-24 18:33:23

JayGursky
Member
Registered: 2023-07-04
Posts: 21

Re: [SOLVED] How to make LO Writer Pay Attention to Button gtk.css?

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

#3 2023-11-26 15:04:44

begtognen
Member
Registered: 2021-10-03
Posts: 15

Re: [SOLVED] How to make LO Writer Pay Attention to Button gtk.css?

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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 522.16 KiB (Peak: 529.34 KiB) ]