_colors-public.scss
ASCII text
1// apps rely on some named colors to be exported 2/* GTK NAMED COLORS 3---------------- 4use 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/* 9widget text/foreground color */ 10@define-color theme_fg_color #{"" + $on-surface}; 11 12/* 13text color for entries, views and content in general */ 14@define-color theme_text_color #{"" + $on-surface}; 15 16/* 17widget base background color */ 18@define-color theme_bg_color #{"" + $surface-z0}; 19 20/* 21text widgets and the like base background color */ 22@define-color theme_base_color #{"" + $surface-z1}; 23 24/* 25base background color of selections */ 26@define-color theme_selected_bg_color #{"" + $primary}; 27 28/* 29text/foreground color of selections */ 30@define-color theme_selected_fg_color #{"" + $on-primary}; 31 32/* 33base background color of insensitive widgets */ 34@define-color insensitive_bg_color #{"" + $surface-z0}; 35 36/* 37text foreground color of insensitive widgets */ 38@define-color insensitive_fg_color #{"" + disabled($on-surface)}; 39 40/* 41insensitive text widgets and the like base background color */ 42@define-color insensitive_base_color #{"" + $surface-z1}; 43 44/* 45widget text/foreground color on backdrop windows */ 46@define-color theme_unfocused_fg_color #{"" + $on-surface}; 47 48/* 49text color for entries, views and content in general on backdrop windows */ 50@define-color theme_unfocused_text_color #{"" + $on-surface}; 51 52/* 53widget base background color on backdrop windows */ 54@define-color theme_unfocused_bg_color #{"" + $surface-z0}; 55 56/* 57text widgets and the like base background color on backdrop windows */ 58@define-color theme_unfocused_base_color #{"" + $surface-z1}; 59 60/* 61base background color of selections on backdrop windows */ 62@define-color theme_unfocused_selected_bg_color #{"" + $primary}; 63 64/* 65text/foreground color of selections on backdrop windows */ 66@define-color theme_unfocused_selected_fg_color #{"" + $on-primary}; 67 68/* 69insensitive color on backdrop windows */ 70@define-color unfocused_insensitive_color #{"" + disabled($on-surface)}; 71 72/* 73widgets main borders color */ 74@define-color borders #{"" + divider($on-surface)}; 75 76/* 77widgets main borders color on backdrop windows */ 78@define-color unfocused_borders #{"" + divider($on-surface)}; 79 80/* 81these are pretty self explicative */ 82@define-color warning_color #{"" + $warning}; 83@define-color error_color #{"" + $error}; 84@define-color success_color #{"" + $success}; 85// @define-color destructive_color #{"" + $error}; 86 87/* 88these colors are exported for the window manager and shouldn't be used in applications, 89read if you used those and something break with a version upgrade you're on your own... */ 90@define-color wm_title #{"" + $on-titlebar}; 91@define-color wm_unfocused_title #{"" + hint($on-titlebar)}; 92@define-color wm_highlight #{"" + highlight($titlebar)}; 93@define-color wm_bg #{"" + $titlebar}; 94@define-color wm_unfocused_bg #{"" + $titlebar-backdrop}; 95 96// To export opaque text colors for xfwm4 themerc using Sass. 97@define-color xfwm4_title #{"" + opacify($on-titlebar, $titlebar)}; 98@define-color xfwm4_unfocused_title #{"" + opacify(hint($on-titlebar), $titlebar-backdrop)}; 99 100// FIXME this is really an API 101 102/* content view background such as thumbnails view in Photos or Boxes */ 103@define-color content_view_bg #{"" + $surface-z0}; 104 105/* Very contrasty background for text views (@theme_text_color foreground) */ 106@define-color text_view_bg #{"" + $surface-z0}; 107 108/* placeholder for entries */ 109// NOTE: @placeholder_text_color doesn't allow translucent colors. 110@define-color placeholder_text_color #{"" + opacify(hint($on-surface), $surface-z1)}; 111