Tweaked adaptive color sheet to work with Plasma versions <5.19

This commit is contained in:
ratsrats 2022-02-06 14:00:50 +00:00
parent 0316d0a654
commit 2ffeff5cb7
1 changed files with 20 additions and 19 deletions

View File

@ -1,41 +1,42 @@
/* This imports current selected theme's colors and then overwrites it with Plasma's colors */
/* Tweaked to work with Plasma versions <5.19 */
@import "plasma_colors.css"; /*unfortunately if it does not exist, this theme will be broken!*/
@import "../theme_colors.css";
@define-color window_fg @theme_fg_color_breeze;
@define-color window_bg @theme_bg_color_breeze;
@define-color text_widget_fg @theme_text_color_breeze;
@define-color text_widget_bg @theme_base_color_breeze;
@define-color window_fg @theme_fg_color;
@define-color window_bg @theme_bg_color;
@define-color text_widget_fg @theme_text_color;
@define-color text_widget_bg @theme_base_color;
@define-color disabled_fg @insensitive_fg_color_breeze;
@define-color disabled_bg @insensitive_bg_color_breeze;
@define-color disabled_fg @insensitive_fg_color;
@define-color disabled_bg @insensitive_bg_color;
@define-color selected_fg @theme_selected_fg_color_breeze;
@define-color selected_bg @theme_selected_bg_color_breeze;
@define-color selected_fg @theme_selected_fg_color;
@define-color selected_bg @theme_selected_bg_color;
@define-color button_fg @theme_button_foreground_normal_breeze;
@define-color button_bg @theme_button_background_normal_breeze;
@define-color button_fg @theme_button_foreground_normal;
@define-color button_bg @theme_button_background_normal;
@define-color button_pushed_fg @button_fg; /*could need to be @selected_fg on some themes. Plasma does not have a setting for toggled buttons*/
@define-color button_pushed_bg mix(@button_bg, @selected_bg, 0.5); /*Plasma does not have a setting for toggled buttons*/
@define-color border_color shade(mix(@window_fg, @text_widget_bg, 0.5), 0.5); /* to honor Plasma's that would be @borders_breeze, instead of shade(...) */
@define-color warning_color @warning_color_breeze;
@define-color error_color @error_color_breeze;
@define-color success_color @success_color_breeze;
@define-color warning_color @warning_color;
@define-color error_color @error_color;
@define-color success_color @success_color;
@define-color titlebar_active_fg @theme_titlebar_foreground_breeze;
@define-color titlebar_active_bg @theme_titlebar_background_breeze;
@define-color titlebar_active_fg @theme_titlebar_foreground;
@define-color titlebar_active_bg @theme_titlebar_background;
@define-color titlebar_backdrop_fg @theme_titlebar_foreground_backdrop_breeze;
@define-color titlebar_backdrop_bg @theme_titlebar_background_backdrop_breeze;
@define-color titlebar_backdrop_fg @theme_titlebar_foreground_backdrop;
@define-color titlebar_backdrop_bg @theme_titlebar_background_backdrop;
@define-color hint_fg @tooltip_text_breeze;
@define-color hint_bg @tooltip_background_breeze;
@define-color hint_fg @tooltip_text;
@define-color hint_bg @tooltip_background;