|
|
@@ -230,176 +230,176 @@ class ThemeManagerLinux(
|
|
|
val backdropDarkBg = lerp(bgColor, fgColor, 0.75f)
|
|
|
val backdropSelBg = bgColor.darker(0.08f)
|
|
|
return """
|
|
|
- @define-color accent_color ${selectedBgColor.hexRgb};
|
|
|
- @define-color accent_bg_color ${selectedBgColor.hexRgb};
|
|
|
- @define-color accent_fg_color ${selectedFgColor.hexRgb};
|
|
|
- @define-color destructive_color ${errorBgColor.hexRgb};
|
|
|
- @define-color destructive_bg_color ${errorBgColor.hexRgb};
|
|
|
- @define-color destructive_fg_color ${errorFgColor.hexRgb};
|
|
|
- @define-color bg_color ${bgColor.hexRgb};
|
|
|
- @define-color fg_color ${fgColor.hexRgb};
|
|
|
- @define-color base_color ${baseColor.hexRgb};
|
|
|
- @define-color text_color ${textColor.hexRgb};
|
|
|
- @define-color selected_bg_color ${selectedBgColor.hexRgb};
|
|
|
- @define-color selected_fg_color ${selectedFgColor.hexRgb};
|
|
|
- @define-color tooltip_bg_color ${tooltipBgColor.hexRgb};
|
|
|
- @define-color tooltip_fg_color ${tooltipFgColor.hexRgb};
|
|
|
- @define-color info_fg_color ${infoFgColor.hexRgb};
|
|
|
- @define-color info_bg_color ${infoBgColor.hexRgb};
|
|
|
- @define-color warning_fg_color ${warningFgColor.hexRgb};
|
|
|
- @define-color warning_bg_color ${warningBgColor.hexRgb};
|
|
|
- @define-color question_fg_color ${questionFgColor.hexRgb};
|
|
|
- @define-color question_bg_color ${questionBgColor.hexRgb};
|
|
|
- @define-color error_fg_color ${errorFgColor.hexRgb};
|
|
|
- @define-color error_bg_color ${errorBgColor.hexRgb};
|
|
|
- @define-color success_color ${successBgColor.hexRgb};
|
|
|
- @define-color error_color ${errorBgColor.hexRgb};
|
|
|
- @define-color dark_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color dark_fg_color ${fgColor.hexRgb};
|
|
|
- @define-color window_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color window_fg_color ${fgColor.hexRgb};
|
|
|
- @define-color view_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color view_fg_color ${textColor.hexRgb};
|
|
|
- @define-color headerbar_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color headerbar_fg_color ${fgColor.hexRgb};
|
|
|
- @define-color headerbar_border_color ${borderColor.hexRgb};
|
|
|
- @define-color headerbar_backdrop_color ${bgColor.hexRgb};
|
|
|
- @define-color headerbar_shade_color ${borderColor.hexRgb};
|
|
|
- @define-color card_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color card_fg_color ${fgColor.hexRgb};
|
|
|
- @define-color card_shade_color ${borderColor.hexRgb};
|
|
|
- @define-color osd_fg_color ${osdFgColor.hexRgb};
|
|
|
- @define-color osd_bg_color ${osdBgColor.hexRgb};
|
|
|
- @define-color osd_border_color ${borderColor.hexRgb};
|
|
|
- @define-color dialog_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color dialog_fg_color ${fgColor.hexRgb};
|
|
|
- @define-color popover_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color popover_fg_color ${fgColor.hexRgb};
|
|
|
- @define-color link_color @selected_bg_color;
|
|
|
- @define-color button_bg_color ${buttonBgColor.hexRgb};
|
|
|
- @define-color notebook_button_bg_color ${buttonBgColor.hexRgb};
|
|
|
- @define-color button_insensitive_bg_color ${buttonInsens.hexRgb};
|
|
|
- @define-color backdrop_fg_color ${backdropFg.hexRgb};
|
|
|
- @define-color backdrop_text_color ${backdropText.hexRgb};
|
|
|
- @define-color backdrop_dark_fg_color ${backdropDarkFg.hexRgb};
|
|
|
- @define-color backdrop_dark_bg_color ${backdropDarkBg.hexRgb};
|
|
|
- @define-color backdrop_selected_bg_color ${backdropSelBg.hexRgb};
|
|
|
- @define-color backdrop_selected_fg_color @fg_color;
|
|
|
- @define-color focus_color ${selectedBgColor.hexRgb};
|
|
|
- @define-color focus_bg_color ${bgColor.hexRgb};
|
|
|
- @define-color shadow_color rgba(0, 0, 0, 0.5);
|
|
|
- @define-color blue_1 #99c1f1;
|
|
|
- @define-color blue_2 #62a0ea;
|
|
|
- @define-color blue_3 #3584e4;
|
|
|
- @define-color blue_4 #1c71d8;
|
|
|
- @define-color blue_5 #1a5fb4;
|
|
|
- @define-color green_1 #8ff0a4;
|
|
|
- @define-color green_2 #57e389;
|
|
|
- @define-color green_3 #33d17a;
|
|
|
- @define-color green_4 #2ec27e;
|
|
|
- @define-color green_5 #26a269;
|
|
|
- @define-color yellow_1 #f9f06b;
|
|
|
- @define-color yellow_2 #f8e45c;
|
|
|
- @define-color yellow_3 #f6d32d;
|
|
|
- @define-color yellow_4 #f5c211;
|
|
|
- @define-color yellow_5 #e5a50a;
|
|
|
- @define-color orange_1 #ffbe6f;
|
|
|
- @define-color orange_2 #ffa348;
|
|
|
- @define-color orange_3 #ff7800;
|
|
|
- @define-color orange_4 #e66100;
|
|
|
- @define-color orange_5 #c64600;
|
|
|
- @define-color red_1 #f66151;
|
|
|
- @define-color red_2 #ed333b;
|
|
|
- @define-color red_3 #e01b24;
|
|
|
- @define-color red_4 #c01c28;
|
|
|
- @define-color red_5 #a51d2d;
|
|
|
- @define-color purple_1 #dc8add;
|
|
|
- @define-color purple_2 #c061cb;
|
|
|
- @define-color purple_3 #9141ac;
|
|
|
- @define-color purple_4 #813d9c;
|
|
|
- @define-color purple_5 #613583;
|
|
|
- @define-color brown_1 #cdab8f;
|
|
|
- @define-color brown_2 #b5835a;
|
|
|
- @define-color brown_3 #986a44;
|
|
|
- @define-color brown_4 #865e3c;
|
|
|
- @define-color brown_5 #63452c;
|
|
|
- @define-color light_1 #ffffff;
|
|
|
- @define-color light_2 #f6f5f4;
|
|
|
- @define-color light_3 #deddda;
|
|
|
- @define-color light_4 #c0bfbc;
|
|
|
- @define-color light_5 #9a9996;
|
|
|
- @define-color dark_1 #77767b;
|
|
|
- @define-color dark_2 #5e5c64;
|
|
|
- @define-color dark_3 #3d3846;
|
|
|
- @define-color dark_4 #241f31;
|
|
|
- @define-color dark_5 #000000;
|
|
|
-
|
|
|
- /* App content follows the wallpaper palette (compositor draws the outer frame). */
|
|
|
- window {
|
|
|
- background-image: none;
|
|
|
- background-color: @window_bg_color;
|
|
|
- border-radius: 0;
|
|
|
- box-shadow: none;
|
|
|
- border: none;
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- }
|
|
|
+ @define-color accent_color ${selectedBgColor.hexRgb};
|
|
|
+ @define-color accent_bg_color ${selectedBgColor.hexRgb};
|
|
|
+ @define-color accent_fg_color ${selectedFgColor.hexRgb};
|
|
|
+ @define-color destructive_color ${errorBgColor.hexRgb};
|
|
|
+ @define-color destructive_bg_color ${errorBgColor.hexRgb};
|
|
|
+ @define-color destructive_fg_color ${errorFgColor.hexRgb};
|
|
|
+ @define-color bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color base_color ${baseColor.hexRgb};
|
|
|
+ @define-color text_color ${textColor.hexRgb};
|
|
|
+ @define-color selected_bg_color ${selectedBgColor.hexRgb};
|
|
|
+ @define-color selected_fg_color ${selectedFgColor.hexRgb};
|
|
|
+ @define-color tooltip_bg_color ${tooltipBgColor.hexRgb};
|
|
|
+ @define-color tooltip_fg_color ${tooltipFgColor.hexRgb};
|
|
|
+ @define-color info_fg_color ${infoFgColor.hexRgb};
|
|
|
+ @define-color info_bg_color ${infoBgColor.hexRgb};
|
|
|
+ @define-color warning_fg_color ${warningFgColor.hexRgb};
|
|
|
+ @define-color warning_bg_color ${warningBgColor.hexRgb};
|
|
|
+ @define-color question_fg_color ${questionFgColor.hexRgb};
|
|
|
+ @define-color question_bg_color ${questionBgColor.hexRgb};
|
|
|
+ @define-color error_fg_color ${errorFgColor.hexRgb};
|
|
|
+ @define-color error_bg_color ${errorBgColor.hexRgb};
|
|
|
+ @define-color success_color ${successBgColor.hexRgb};
|
|
|
+ @define-color error_color ${errorBgColor.hexRgb};
|
|
|
+ @define-color dark_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color dark_fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color window_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color window_fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color view_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color view_fg_color ${textColor.hexRgb};
|
|
|
+ @define-color headerbar_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color headerbar_fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color headerbar_border_color ${borderColor.hexRgb};
|
|
|
+ @define-color headerbar_backdrop_color ${bgColor.hexRgb};
|
|
|
+ @define-color headerbar_shade_color ${borderColor.hexRgb};
|
|
|
+ @define-color card_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color card_fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color card_shade_color ${borderColor.hexRgb};
|
|
|
+ @define-color osd_fg_color ${osdFgColor.hexRgb};
|
|
|
+ @define-color osd_bg_color ${osdBgColor.hexRgb};
|
|
|
+ @define-color osd_border_color ${borderColor.hexRgb};
|
|
|
+ @define-color dialog_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color dialog_fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color popover_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color popover_fg_color ${fgColor.hexRgb};
|
|
|
+ @define-color link_color @selected_bg_color;
|
|
|
+ @define-color button_bg_color ${buttonBgColor.hexRgb};
|
|
|
+ @define-color notebook_button_bg_color ${buttonBgColor.hexRgb};
|
|
|
+ @define-color button_insensitive_bg_color ${buttonInsens.hexRgb};
|
|
|
+ @define-color backdrop_fg_color ${backdropFg.hexRgb};
|
|
|
+ @define-color backdrop_text_color ${backdropText.hexRgb};
|
|
|
+ @define-color backdrop_dark_fg_color ${backdropDarkFg.hexRgb};
|
|
|
+ @define-color backdrop_dark_bg_color ${backdropDarkBg.hexRgb};
|
|
|
+ @define-color backdrop_selected_bg_color ${backdropSelBg.hexRgb};
|
|
|
+ @define-color backdrop_selected_fg_color @fg_color;
|
|
|
+ @define-color focus_color ${selectedBgColor.hexRgb};
|
|
|
+ @define-color focus_bg_color ${bgColor.hexRgb};
|
|
|
+ @define-color shadow_color rgba(0, 0, 0, 0.5);
|
|
|
+ @define-color blue_1 #99c1f1;
|
|
|
+ @define-color blue_2 #62a0ea;
|
|
|
+ @define-color blue_3 #3584e4;
|
|
|
+ @define-color blue_4 #1c71d8;
|
|
|
+ @define-color blue_5 #1a5fb4;
|
|
|
+ @define-color green_1 #8ff0a4;
|
|
|
+ @define-color green_2 #57e389;
|
|
|
+ @define-color green_3 #33d17a;
|
|
|
+ @define-color green_4 #2ec27e;
|
|
|
+ @define-color green_5 #26a269;
|
|
|
+ @define-color yellow_1 #f9f06b;
|
|
|
+ @define-color yellow_2 #f8e45c;
|
|
|
+ @define-color yellow_3 #f6d32d;
|
|
|
+ @define-color yellow_4 #f5c211;
|
|
|
+ @define-color yellow_5 #e5a50a;
|
|
|
+ @define-color orange_1 #ffbe6f;
|
|
|
+ @define-color orange_2 #ffa348;
|
|
|
+ @define-color orange_3 #ff7800;
|
|
|
+ @define-color orange_4 #e66100;
|
|
|
+ @define-color orange_5 #c64600;
|
|
|
+ @define-color red_1 #f66151;
|
|
|
+ @define-color red_2 #ed333b;
|
|
|
+ @define-color red_3 #e01b24;
|
|
|
+ @define-color red_4 #c01c28;
|
|
|
+ @define-color red_5 #a51d2d;
|
|
|
+ @define-color purple_1 #dc8add;
|
|
|
+ @define-color purple_2 #c061cb;
|
|
|
+ @define-color purple_3 #9141ac;
|
|
|
+ @define-color purple_4 #813d9c;
|
|
|
+ @define-color purple_5 #613583;
|
|
|
+ @define-color brown_1 #cdab8f;
|
|
|
+ @define-color brown_2 #b5835a;
|
|
|
+ @define-color brown_3 #986a44;
|
|
|
+ @define-color brown_4 #865e3c;
|
|
|
+ @define-color brown_5 #63452c;
|
|
|
+ @define-color light_1 #ffffff;
|
|
|
+ @define-color light_2 #f6f5f4;
|
|
|
+ @define-color light_3 #deddda;
|
|
|
+ @define-color light_4 #c0bfbc;
|
|
|
+ @define-color light_5 #9a9996;
|
|
|
+ @define-color dark_1 #77767b;
|
|
|
+ @define-color dark_2 #5e5c64;
|
|
|
+ @define-color dark_3 #3d3846;
|
|
|
+ @define-color dark_4 #241f31;
|
|
|
+ @define-color dark_5 #000000;
|
|
|
+
|
|
|
+ /* App content follows the wallpaper palette (compositor draws the outer frame). */
|
|
|
+ window {
|
|
|
+ background-image: none;
|
|
|
+ background-color: @window_bg_color;
|
|
|
+ border-radius: 0;
|
|
|
+ box-shadow: none;
|
|
|
+ border: none;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
|
|
|
- /* Compositor draws min/max/close — hide client-side titlebuttons only. */
|
|
|
- headerbar button.titlebutton,
|
|
|
- headerbar .titlebutton {
|
|
|
- opacity: 0;
|
|
|
- min-width: 0;
|
|
|
- min-height: 0;
|
|
|
- padding: 0;
|
|
|
- margin: 0;
|
|
|
- border: none;
|
|
|
- }
|
|
|
+ /* Compositor draws min/max/close — hide client-side titlebuttons only. */
|
|
|
+ headerbar button.titlebutton,
|
|
|
+ headerbar .titlebutton {
|
|
|
+ opacity: 0;
|
|
|
+ min-width: 0;
|
|
|
+ min-height: 0;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
|
|
|
- window.ssd headerbar {
|
|
|
- min-height: 0;
|
|
|
- padding: 0;
|
|
|
- margin: 0;
|
|
|
- border: none;
|
|
|
- box-shadow: none;
|
|
|
- background-image: none;
|
|
|
- background-color: @window_bg_color;
|
|
|
- }
|
|
|
+ window.ssd headerbar {
|
|
|
+ min-height: 0;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
+ border: none;
|
|
|
+ box-shadow: none;
|
|
|
+ background-image: none;
|
|
|
+ background-color: @window_bg_color;
|
|
|
+ }
|
|
|
|
|
|
- .titlebar, headerbar {
|
|
|
- padding-top: 2px;
|
|
|
- padding-bottom: 2px;
|
|
|
- background-image: none;
|
|
|
- background-color: @headerbar_bg_color;
|
|
|
- }
|
|
|
+ .titlebar, headerbar {
|
|
|
+ padding-top: 2px;
|
|
|
+ padding-bottom: 2px;
|
|
|
+ background-image: none;
|
|
|
+ background-color: @headerbar_bg_color;
|
|
|
+ }
|
|
|
|
|
|
- toolbarview,
|
|
|
- .toolbarview,
|
|
|
- .background {
|
|
|
- background-color: @window_bg_color;
|
|
|
- color: @text_color;
|
|
|
- }
|
|
|
+ toolbarview,
|
|
|
+ .toolbarview,
|
|
|
+ .background {
|
|
|
+ background-color: @window_bg_color;
|
|
|
+ color: @text_color;
|
|
|
+ }
|
|
|
|
|
|
- entry, textview, label {
|
|
|
- color: @text_color;
|
|
|
- }
|
|
|
+ entry, textview, label {
|
|
|
+ color: @text_color;
|
|
|
+ }
|
|
|
|
|
|
- button {
|
|
|
- background-color: @button_bg_color;
|
|
|
- opacity: 0.85;
|
|
|
- margin: 2px;
|
|
|
- padding: 4px;
|
|
|
- min-width: 24px;
|
|
|
- min-height: 24px;
|
|
|
- text-shadow: none;
|
|
|
- color: ${buttonFgColor.hexRgb};
|
|
|
- border-radius: 8px;
|
|
|
- }
|
|
|
+ button {
|
|
|
+ background-color: @button_bg_color;
|
|
|
+ opacity: 0.85;
|
|
|
+ margin: 2px;
|
|
|
+ padding: 4px;
|
|
|
+ min-width: 24px;
|
|
|
+ min-height: 24px;
|
|
|
+ text-shadow: none;
|
|
|
+ color: ${buttonFgColor.hexRgb};
|
|
|
+ border-radius: 8px;
|
|
|
+ }
|
|
|
|
|
|
- button:hover {
|
|
|
- opacity: 1;
|
|
|
- }
|
|
|
- """.trimIndent()
|
|
|
+ button:hover {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ """.trimIndent()
|
|
|
}
|
|
|
}
|
|
|
|