Mercurial > repos > other > Adwaita-Dark-Green
annotate gtk-4.4/gtk-minimal.css @ 113:3a790d4649eb default tip
Fix GTK4/Adwaita outline and background issues
* Views are now used in popovers but shouldn't have
"normal" view background colour
* Flat buttons should be flat, not bordered/outlines
* Spinbuttons in lists don't need outlines on their buttons
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 01 May 2022 11:34:31 +0100 |
parents | 763cdfeaf613 |
children |
rev | line source |
---|---|
98 | 1 /* Accent Colors */ |
2 @define-color accent_color #5E7F3E; | |
3 @define-color accent_bg_color #5E7F3E; | |
4 @define-color accent_fg_color #ffffff; | |
5 /* Window Colors */ | |
6 @define-color window_bg_color #C6C6C6; | |
7 @define-color window_fg_color #161616; | |
8 /* View Colors */ | |
99
85674188d6d3
Correct Adwaita view/table colours
IBBoard <dev@ibboard.co.uk>
parents:
98
diff
changeset
|
9 @define-color view_bg_color #F0F0F0; |
85674188d6d3
Correct Adwaita view/table colours
IBBoard <dev@ibboard.co.uk>
parents:
98
diff
changeset
|
10 @define-color view_fg_color black; |
98 | 11 /* Header Bar Colors */ |
12 @define-color headerbar_bg_color #3D3D3D; | |
101
1e5ce701b8d8
Lighten views (lists, tables, etc)
IBBoard <dev@ibboard.co.uk>
parents:
99
diff
changeset
|
13 @define-color headerbar_fg_color #fff; |
98 | 14 @define-color headerbar_backdrop_color #3D3D3D; |
15 /* Card Colors */ | |
16 @define-color card_bg_color #e1e1e1; | |
17 @define-color card_fg_color #161616; | |
18 @define-color card_shade_color #161616; | |
19 /* Popover Colors */ | |
20 @define-color popover_bg_color #C6C6C6; | |
21 @define-color popover_fg_color #161616; | |
99
85674188d6d3
Correct Adwaita view/table colours
IBBoard <dev@ibboard.co.uk>
parents:
98
diff
changeset
|
22 /* Fix the avatar shape */ |
85674188d6d3
Correct Adwaita view/table colours
IBBoard <dev@ibboard.co.uk>
parents:
98
diff
changeset
|
23 avatar { border-radius: 4px; } |
102
52522384054f
Add slight border to buttons in lists
IBBoard <dev@ibboard.co.uk>
parents:
101
diff
changeset
|
24 |
113
3a790d4649eb
Fix GTK4/Adwaita outline and background issues
IBBoard <dev@ibboard.co.uk>
parents:
106
diff
changeset
|
25 list button.text-button:not(.flat), list button.image-button:not(.toggle):not(.flat), list button.toggle:checked, list button:not(.flat):hover, list spinbutton { outline: 1px @borders solid; outline-offset: -1px; } |
106
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
26 |
113
3a790d4649eb
Fix GTK4/Adwaita outline and background issues
IBBoard <dev@ibboard.co.uk>
parents:
106
diff
changeset
|
27 button.combo, button.text-button.toggle, button.text-button.pill { outline: 1px @borders solid; outline-offset: -1px; } |
106
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
28 |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
29 list spinbutton button.image-button:not(.toggle), list button.image-button.background-preview-button, headerbar button.text-button { outline-width: 0; } |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
30 |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
31 checkbutton radio:not(:checked), checkbutton check:not(:checked) { background-color: #F0F0F0; } |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
32 |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
33 checkbutton radio:not(:checked):backdrop, checkbutton check:not(:checked):backdrop { background-color: #ededed; } |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
34 |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
35 .dim-label { opacity: 0.75; } |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
36 |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
37 entry { background: @view_bg_color; color: @view_fg_color; } |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
38 |
763cdfeaf613
Improve Adwaita recolouring and contrast
IBBoard <dev@ibboard.co.uk>
parents:
102
diff
changeset
|
39 switch { border: 1px solid #00000044; } |
113
3a790d4649eb
Fix GTK4/Adwaita outline and background issues
IBBoard <dev@ibboard.co.uk>
parents:
106
diff
changeset
|
40 |
3a790d4649eb
Fix GTK4/Adwaita outline and background issues
IBBoard <dev@ibboard.co.uk>
parents:
106
diff
changeset
|
41 /* Prevent hover on a list view giving a light background */ |
3a790d4649eb
Fix GTK4/Adwaita outline and background issues
IBBoard <dev@ibboard.co.uk>
parents:
106
diff
changeset
|
42 listview.navigation-sidebar:hover { background: transparent; } |