mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
99f452c999
* feat(Themes): add support for GTK3 dynamic theming Instead of overriding named colors of all GTK3 themes via the config directory file, only override named colors for each variant of the adw-gtk3 theme (light and dark), and let GTK3 apps change themes depending on the value of org.gnome.desktop.interface color-scheme. * fix(Themes): apply requested changes - remove gtk3 override if it's a symlink - remove call to gtk.sh with old arg 'assets-only' - append key to dconf path to respect dconf write signature * refactor(Themes): separate 'include'/'apply' logic for GTK3 dynamic theming * revert(Themes): reset timer between color-scheme refresh - rename DMS_ENABLE_GTK4_REFRESH to DMS_ENABLE_GTK_REFRESH - revert a3fba8 * feat(Themes): add 'remove' mode to gtk.sh Allow to remove all inclusions and overrides for GTK. * fix(Themes): backup adw-gtk3 original css in 'apply' (not 'include') * style(Themes): rename argument 'include' to 'patch' for clarity
53 lines
2.6 KiB
CSS
53 lines
2.6 KiB
CSS
/* BEGIN DMS OVERRIDE */
|
|
|
|
/*
|
|
* GTK Colors
|
|
* Generated with Matugen
|
|
*/
|
|
|
|
/* via thairanaru on GitHub: */
|
|
|
|
/* Destructive colors are basically error colors */
|
|
@define-color destructive_bg_color {{colors.error.default.hex}};
|
|
@define-color destructive_fg_color {{colors.on_error.default.hex}};
|
|
/* Follow material spec */
|
|
@define-color error_bg_color {{colors.error.default.hex}};
|
|
@define-color error_fg_color {{colors.on_error.default.hex}};
|
|
/* Follow material spec (also I think looks nicer) */
|
|
@define-color accent_fg_color {{colors.on_primary.default.hex}};
|
|
@define-color accent_bg_color {{colors.primary.default.hex}};
|
|
/* Use surface instead of background */
|
|
@define-color window_bg_color {{colors.surface.default.hex}};
|
|
@define-color window_fg_color {{colors.on_surface.default.hex}};
|
|
/* Make it more similar to Adwaita */
|
|
@define-color view_bg_color {{colors.surface.default.hex}};
|
|
@define-color view_fg_color {{colors.on_surface.default.hex}};
|
|
@define-color headerbar_bg_color {{colors.surface.default.hex}};
|
|
@define-color headerbar_fg_color {{colors.on_surface.default.hex}};
|
|
@define-color sidebar_bg_color {{colors.surface_container.default.hex}};
|
|
@define-color sidebar_fg_color {{colors.on_surface.default.hex}};
|
|
/* There is only like one application I know that uses this, and there isn't a good way to get
|
|
a color between surface and surface container so I think just giving this surface is a good enough fallback*/
|
|
@define-color secondary_sidebar_bg_color {{colors.surface.default.hex}};
|
|
@define-color secondary_sidebar_fg_color {{colors.on_surface.default.hex}};
|
|
@define-color card_bg_color {{colors.surface_container.default.hex}};
|
|
@define-color card_fg_color {{colors.on_surface.default.hex}};
|
|
@define-color overview_bg_color {{colors.surface_container.default.hex}};
|
|
@define-color overview_fg_color {{colors.on_surface.default.hex}};
|
|
@define-color popover_bg_color {{colors.surface_container.default.hex}};
|
|
@define-color popover_fg_color {{colors.on_surface.default.hex}};
|
|
@define-color dialog_bg_color {{colors.surface.default.hex}};
|
|
@define-color dialog_fg_color {{colors.on_surface.default.hex}};
|
|
|
|
/* Backdrop/unfocused states - prevents white flash on window unfocus */
|
|
@define-color headerbar_backdrop_color @window_bg_color;
|
|
@define-color sidebar_backdrop_color @sidebar_bg_color;
|
|
@define-color theme_unfocused_fg_color @window_fg_color;
|
|
@define-color theme_unfocused_text_color @view_fg_color;
|
|
@define-color theme_unfocused_bg_color @window_bg_color;
|
|
@define-color theme_unfocused_base_color @window_bg_color;
|
|
@define-color theme_unfocused_selected_bg_color @accent_bg_color;
|
|
@define-color theme_unfocused_selected_fg_color @accent_fg_color;
|
|
|
|
/* END DMS OVERRIDE */
|