view gtk-3.24/gnome-builder.css @ 98:9da64f7bb19c

Add support for GTK4 Includes `gtk-minimal.css`, which can be used to override Adwaita colours by running `ln -s ~/.themes/Adwaita-Dark-Green/gtk-4.4/gtk-minimal.css ~/.config/gtk-4.0/gtk.css`
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Mar 2022 20:03:44 +0000
parents d721ae7a505b
children
line wrap: on
line source

omnibar {
  background-color: @wm_bg_a;
}

omnibar:backdrop {
  background-color: @wm_title;
}

/* Note: We need to use some odd rules to override the styles
 * because standard specificity doesn't seem to be enough.
 * 
 * This appears to be in part because all of this CSS is defined BEFORE
 * Builder imports the shared-omnibar.css file, so our code gets
 * overwritten (even though more specific rules should win)
 */

omnibar entry {
  background-image: linear-gradient(to top, @wm_bg_a 0%, @wm_bg_a 100%);
  border-top-color: @wm_button_border;
  border-right-color: @wm_button_border;
  border-bottom-color: @wm_button_border;
  border-left-color: @wm_button_border;
}

omnibar:hover entry,
omnibar:active entry {
  background-image: linear-gradient(to top, shade(@wm_bg_a, 1.1) 0%, shade(@wm_bg_a, 1.1) 100%);
}

omnibar:backdrop entry {  
  background-image: linear-gradient(to top, @wm_title 0%, @wm_title 100%);
  border-top-color: @wm_button_border;
  border-right-color: @wm_button_border;
  border-bottom-color: @wm_button_border;
  border-left-color: @wm_button_border;
}