GTK 3.0 css files, I seem to have a bit of a random collection of them

Chris Green cl at isbd.net
Sun Aug 2 08:53:33 UTC 2020


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
    ...
    ...


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?


-- 
Chris Green




More information about the ubuntu-users mailing list