• 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: June 19th, 2023

help-circle
  • Nah, unless you’re unhappy with the current outcome, you can leave it as it is.

    Changes in .config/gtk-4.0/gtk.css will be applied on top of the stylesheet, so whatever you don’t override there, will fall back to the default, that’s why your sidebar previously went full Adwaita light mode.

    After taking a brief look at the libadwaita source, as far as I can see, helper colors are a special case anyways, @borders as well as border_coloris used exclusively in the scssfiles (which the gtk.css is generated from), whereas the gtk.css for some reason doesn’t get back to the generic name, but uses the assigned value alpha(currentColor,0.15) - which doesn’t help your case at all.

    To actually change @borders, you would need to modify its value in .scss and regenerate the .css then.

    For your other point, there’s no need to introduce a new color for this, since the helper color is an alpha value derived from your foreground color (that’s what currentColor is referring to), so if you change _fg_color in gtk.css, @borders will change along with it.



  • Defining sidebar_bg_color does not work?

    @define-color sidebar_bg_color 	
    @define-color sidebar_fg_color 	
    @define-color sidebar_backdrop_color 	
    @define-color sidebar_border_color 	
    @define-color sidebar_shade_color
    
    @define-color secondary_sidebar_bg_color 	
    @define-color secondary_sidebar_fg_color 	
    @define-color secondary_sidebar_backdrop_color 	
    @define-color secondary_sidebar_border_color 	
    @define-color secondary_sidebar_shade_color
    
    

    see libadwaita named colors

    GTK Inspector comes with GTK, you don’t need to install it.

    Enable it with gsettings

    gsettings get org.gtk.Settings.Debug enable-inspector-keybinding true

    so you can invoke it either by running GTK_DEBUG=interactive application-name-here or, when alredy using the application, via Control + Shift + I/Control + Shift + D