GTK 3.0 css files, I seem to have a bit of a random collection of them
Colin Law
clanlaw at gmail.com
Sun Aug 2 14:30:19 UTC 2020
On Sun, 2 Aug 2020 at 09:55, Chris Green <cl at isbd.net> wrote:
>
> When I start (some) GUI programs from the command line I often see
> loads of warning errors about invalid (and deprecated) GTK 3.0 css
> configuration files.
>
> On looking into this I find I have a local configuration file:-
>
> ~/.config/gtk-3.0/gtk.css
>
> ... and lots of theme related ones in /usr/share/themes, e.g :-
>
> ...
> ...
> /usr/share/themes/Arc-Darker/gtk-3.0/gtk.css
> /usr/share/themes/Bluebird/gtk-3.0/gtk.css
> /usr/share/themes/Bright/xfce-notify-4.0/gtk.css
> /usr/share/themes/Default/xfce-notify-4.0/gtk.css
> /usr/share/themes/Greybird/gtk-3.0/gtk.css
> /usr/share/themes/Greybird/xfce-notify-4.0/gtk.css
> /usr/share/themes/Greybird-bright/xfce-notify-4.0/gtk.css
> /usr/share/themes/Greybird-dark/gtk-3.0/gtk.css
As far as I can see none of those are in the default ubuntu 20.04 install.
> The errors I see seem to be from my local configuration file, the
> warnings are mostly about 'junk after background-color:....' which
> relates to lines like:-
>
> background-color: @panel_bg_color background-image: -gtk-gradient(linear,left top, left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
>
>
> I didn't explicitly create the local gtk.css file, I assume it must
> have been created when I changed some settings or soemthing. It's
> pretty old, last modified date is in 2014.
>
> So, can I simply remove my ~/.config/gtk-3.0/gtk.css? What does GTK
> 3.0 then use for its GTK css? Will it fall back to the theme specific
> one (for the the theme I'm using) in /usr/share/themes?
The default install does not have that file at all. If you need to
override css then you can create it (or something else can create it).
Rename it rather than delete if you are concerned. You may need to
reboot after changing it.
Colin
More information about the ubuntu-users
mailing list