| 1 |
//apps rely on some named colors to be exported |
| 2 |
/* GTK NAMED COLORS |
| 3 |
---------------- |
| 4 |
use responsibly! */ |
| 5 |
|
| 6 |
// Sass thinks we're using the colors in the variables as strings and may shoot |
| 7 |
// warning, it's innocuous and can be defeated by using "" + $var |
| 8 |
/* |
| 9 |
widget text/foreground color */ |
| 10 |
@define-color theme_fg_color #{"" +$fg_color}; |
| 11 |
|
| 12 |
/* |
| 13 |
text color for entries, views and content in general */ |
| 14 |
@define-color theme_text_color #{"" +$text_color}; |
| 15 |
|
| 16 |
/* |
| 17 |
widget base background color */ |
| 18 |
@define-color theme_bg_color #{"" +$bg_color}; |
| 19 |
|
| 20 |
/* |
| 21 |
text widgets and the like base background color */ |
| 22 |
@define-color theme_base_color #{"" +$base_color}; |
| 23 |
|
| 24 |
/* |
| 25 |
base background color of selections */ |
| 26 |
@define-color theme_selected_bg_color #{"" +$selected_bg_color}; |
| 27 |
|
| 28 |
/* |
| 29 |
text/foreground color of selections */ |
| 30 |
@define-color theme_selected_fg_color #{"" +$selected_fg_color}; |
| 31 |
|
| 32 |
/* |
| 33 |
base background color of insensitive widgets */ |
| 34 |
@define-color insensitive_bg_color #{"" +$insensitive_bg_color}; |
| 35 |
|
| 36 |
/* |
| 37 |
text foreground color of insensitive widgets */ |
| 38 |
@define-color insensitive_fg_color #{"" +$insensitive_fg_color}; |
| 39 |
|
| 40 |
/* |
| 41 |
insensitive text widgets and the like base background color */ |
| 42 |
@define-color insensitive_base_color #{"" +$base_color}; |
| 43 |
|
| 44 |
/* |
| 45 |
widget text/foreground color on backdrop windows */ |
| 46 |
@define-color theme_unfocused_fg_color #{"" +$backdrop_fg_color}; |
| 47 |
|
| 48 |
/* |
| 49 |
text color for entries, views and content in general on backdrop windows */ |
| 50 |
@define-color theme_unfocused_text_color #{"" +$text_color}; |
| 51 |
|
| 52 |
/* |
| 53 |
widget base background color on backdrop windows */ |
| 54 |
@define-color theme_unfocused_bg_color #{"" +$backdrop_bg_color}; |
| 55 |
|
| 56 |
/* |
| 57 |
text widgets and the like base background color on backdrop windows */ |
| 58 |
@define-color theme_unfocused_base_color #{"" +$backdrop_base_color}; |
| 59 |
|
| 60 |
/* |
| 61 |
base background color of selections on backdrop windows */ |
| 62 |
@define-color theme_unfocused_selected_bg_color #{"" +$selected_bg_color}; |
| 63 |
|
| 64 |
/* |
| 65 |
text/foreground color of selections on backdrop windows */ |
| 66 |
@define-color theme_unfocused_selected_fg_color #{"" + $selected_fg_color}; |
| 67 |
|
| 68 |
/* |
| 69 |
insensitive color on backdrop windows*/ |
| 70 |
@define-color unfocused_insensitive_color #{"" + $backdrop_insensitive_color}; |
| 71 |
|
| 72 |
/* |
| 73 |
widgets main borders color */ |
| 74 |
@define-color borders #{"" +$borders_color}; |
| 75 |
|
| 76 |
/* |
| 77 |
widgets main borders color on backdrop windows */ |
| 78 |
@define-color unfocused_borders #{"" +$backdrop_borders_color}; |
| 79 |
|
| 80 |
/* |
| 81 |
these are pretty self explicative */ |
| 82 |
@define-color warning_color #{"" +$warning_color}; |
| 83 |
@define-color error_color #{"" +$error_color}; |
| 84 |
@define-color success_color #{"" +$success_color}; |
| 85 |
@define-color accent_color #{"" +$accent_color}; |
| 86 |
//@define-color destructive_color #{$destructive_color} |
| 87 |
|
| 88 |
//WM |
| 89 |
|
| 90 |
$_wm_highlight: if($variant=='light', $top_hilight, // Sass gets mad if this is |
| 91 |
transparentize(black,1)); // done directly in the |
| 92 |
// color definition |
| 93 |
|
| 94 |
/* |
| 95 |
these colors are exported for the window manager and shouldn't be used in applications, |
| 96 |
read if you used those and something break with a version upgrade you're on your own... */ |
| 97 |
@define-color wm_title hsl(from #{$fg_color} h calc(s * 1.8) calc(l * 1.8)); |
| 98 |
@define-color wm_unfocused_title #{$backdrop_fg_color}; |
| 99 |
@define-color wm_highlight #{"" + $_wm_highlight}; |
| 100 |
@define-color wm_borders_edge #{"" + $borders_edge}; |
| 101 |
|
| 102 |
@define-color wm_bg_a hsl(from #{$bg_color} h calc(s * 1.2) calc(l * 1.2)); |
| 103 |
@define-color wm_bg_b #{$bg_color}; |
| 104 |
|
| 105 |
@define-color wm_shadow rgb(from black r g b / calc(alpha * 0.35)); |
| 106 |
@define-color wm_border rgb(from black r g b / calc(alpha * 0.18)); |
| 107 |
|
| 108 |
@define-color wm_button_hover_color_a hsl(from #{$bg_color} h calc(s * 1.3) calc(l * 1.3)); |
| 109 |
@define-color wm_button_hover_color_b #{$bg_color}; |
| 110 |
@define-color wm_button_active_color_a hsl(from #{$bg_color} h calc(s * 0.85) calc(l * 0.85)); |
| 111 |
@define-color wm_button_active_color_b hsl(from #{$bg_color} h calc(s * 0.89) calc(l * 0.89)); |
| 112 |
@define-color wm_button_active_color_c hsl(from #{$bg_color} h calc(s * 0.9) calc(l * 0.9)); |
| 113 |
|
| 114 |
//FIXME this is really an API |
| 115 |
|
| 116 |
/* content view background such as thumbnails view in Photos or Boxes */ |
| 117 |
@define-color content_view_bg #{"" + $base_color}; |
| 118 |
|
| 119 |
/* Very contrasty background for text views (@theme_text_color foreground) */ |
| 120 |
@define-color text_view_bg #{"" + if($variant == 'light', $base_color, darken($base_color,6%))}; |