Mercurial > repos > other > Adwaita-Dark-Green
annotate gtk-3.20/_colors.scss @ 97:d721ae7a505b
Add support for GTK 3.24 changes
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 26 Mar 2022 20:01:55 +0000 |
parents | d49665775e8b |
children |
rev | line source |
---|---|
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 // When color definition differs for dark and light variant |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 // it gets @if ed depending on $variant |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
5 $base_color: if($variant == 'light', #ffffff, #232729); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 $text_color: if($variant == 'light', black, white); |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
7 $bg_color: if($variant == 'light', #e8e8e7, #33393b); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 $fg_color: if($variant == 'light', #2e3436, #eeeeec); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 $selected_fg_color: #ffffff; |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
11 $selected_bg_color: if($variant == 'light', #4a90d9, darken(#4a90d9, 20%)); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 $selected_borders_color: if($variant== 'light', darken($selected_bg_color, 30%), darken($selected_bg_color, 20%)); |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
13 $borders_color: if($variant == 'light', darken($bg_color, 20%), darken($bg_color, 10%)); |
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
14 $alt_borders_color: if($variant == 'light', darken($bg_color, 35%), darken($bg_color, 17%)); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
15 $borders_edge: if($variant == 'light', transparentize(white, 0.2), transparentize($fg_color, 0.93)); |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
16 $link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%)); |
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
17 $link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color, 10%)); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
18 $top_hilight: $borders_edge; |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
19 $dark_fill: mix($borders_color, $bg_color, 50%); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 $headerbar_color: if($variant == 'light', lighten($bg_color, 5%), darken($bg_color, 3%)); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
21 $menu_color: if($variant == 'light', $base_color, mix($bg_color, $base_color, 20%)); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
22 $popover_bg_color: $bg_color; |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
23 $popover_hover_color: lighten($bg_color, 5%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
24 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
25 $scrollbar_bg_color: if($variant == 'light', mix($bg_color, $fg_color, 80%), mix($base_color, $bg_color, 50%)); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 $scrollbar_slider_color: mix($fg_color, $bg_color, 60%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
27 $scrollbar_slider_hover_color: mix($fg_color, $bg_color, 80%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
28 $scrollbar_slider_active_color: if($variant=='light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 10%)); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
29 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
30 $warning_color: #f57900; |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
31 $error_color: #cc0000; |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
32 $success_color: if($variant == 'light', #73d216, darken(#73d216, 10%)); |
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
33 $destructive_color: if($variant == 'light', #ef2929, darken(#ef2929, 10%)); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
34 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
35 $osd_fg_color: #eeeeec; |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
36 $osd_text_color: white; |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
37 $osd_bg_color: transparentize(#1c1f20, 0.3); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
38 $osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
39 $osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
40 $osd_borders_color: transparentize(black, 0.3); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
41 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
42 $sidebar_bg_color: mix($bg_color, $base_color, 50%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
43 $base_hover_color: transparentize($fg_color, 0.95); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
44 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
45 $tooltip_borders_color: transparentize(white, 0.9); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
46 $shadow_color: transparentize(black, 0.9); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
47 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
48 $drop_target_color: #4e9a06; |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
49 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
50 //insensitive state derived colors |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
51 $insensitive_fg_color: mix($fg_color, $bg_color, 50%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
52 $insensitive_bg_color: mix($bg_color, $base_color, 60%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
53 $insensitive_borders_color: $borders_color; |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
54 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
55 //colors for the backdrop state, derived from the main colors. |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
56 $backdrop_base_color: if($variant == 'light', darken($base_color, 1%), lighten($base_color, 1%)); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
57 $backdrop_text_color: mix($text_color, $backdrop_base_color, 80%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
58 $backdrop_bg_color: $bg_color; |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
59 $backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
60 $backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), lighten($backdrop_bg_color, 15%)); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
61 $backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color); |
41
d49665775e8b
Try incorporating 3.22 into 3.20 for multi-version compat without separate folders
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
62 $backdrop_borders_color: mix($borders_color, $bg_color, 80%); |
24
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
63 $backdrop_dark_fill: mix($backdrop_borders_color, $backdrop_bg_color, 35%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
64 $backdrop_sidebar_bg_color: mix($backdrop_bg_color, $backdrop_base_color, 50%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
65 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
66 $backdrop_scrollbar_bg_color: darken($backdrop_bg_color, 3%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
67 $backdrop_scrollbar_slider_color: mix($backdrop_fg_color, $backdrop_bg_color, 40%); |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
68 |
1b8713fff1e1
Add initial GTK3.20 support ready for upgrade to openSUSE Leap 42.2
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
69 $backdrop_menu_color: if($variant == 'light', $backdrop_base_color, mix($backdrop_bg_color, $backdrop_base_color, 20%)); |