Skip to content

Commit 2ffafe2

Browse files
committed
Use css variables
1 parent f8d2de8 commit 2ffafe2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

gtk/src/adw-gtk3/gtk-3.0/libadwaita-tweaks.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
This file will fix some legacy widget styles that aren't styled in libadwaita
33
*/
44

5+
/* https://github.com/lassekongo83/adw-gtk3/issues/272 */
56
@define-color accent_bg_color @blue_3;
67
@define-color accent_fg_color white;
78

8-
/* add a bg color to notebook headers */
9-
notebook > header {
10-
background-color: @headerbar_bg_color;
11-
border-color: mix(currentColor,@window_bg_color,0.85);
12-
}
13-
149
:root {
1510
--accent-blue: #3584e4;
1611
--accent-teal: #2190a4;
@@ -26,12 +21,19 @@ notebook > header {
2621
--accent-bg-color: var(--accent-blue);
2722
--accent-fg-color: @accent_fg_color;
2823

29-
--card-bg-color: @card_bg_color;
24+
--window-bg-color: @window_bg_color;
25+
--headerbar-bg-color: @headerbar_bg_color;
26+
}
27+
28+
/* add a bg color to notebook headers */
29+
notebook > header {
30+
background-color: var(--headerbar-bg-color);
31+
border-color: mix(currentColor,var(--window-bg-color),0.85);
3032
}
3133

3234
/* Chromium */
3335
.background.chromium {
34-
background-color: color-mix(in srgb, currentColor 5%, @headerbar_bg_color);
36+
background-color: color-mix(in srgb, currentColor 5%, var(--headerbar-bg-color));
3537
}
3638

3739
.background.chromium selection,

0 commit comments

Comments
 (0)