summaryrefslogtreecommitdiff
path: root/examples/py
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-19 21:32:48 +0100
committerAylur <[email protected]>2024-12-19 21:32:48 +0100
commit61637d6333bd812021763039ceea61e7f7d29dbf (patch)
treebebdc24df1d5d0a9c7bf2c2f98376c1be341ee80 /examples/py
parent64150c7739049e3cc9b6b931eba58a635cbc24df (diff)
parentc12fb05408c1cd1b1bca545fec636abda52f6755 (diff)
Merge branch 'main' into feat/tray-gtk4
Diffstat (limited to 'examples/py')
-rw-r--r--examples/py/simple-bar/style.scss14
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/py/simple-bar/style.scss b/examples/py/simple-bar/style.scss
index f98286e..1dcf729 100644
--- a/examples/py/simple-bar/style.scss
+++ b/examples/py/simple-bar/style.scss
@@ -1,3 +1,5 @@
+@use "sass:color";
+
$bg: #212223;
$fg: #f1f1f1;
$accent: #378DF7;
@@ -16,12 +18,12 @@ window.Bar {
background-color: transparent;
&:hover label {
- background-color: transparentize($fg, 0.84);
- border-color: transparentize($accent, 0.8);
+ background-color: color.adjust($fg, $alpha: -0.84);
+ border-color: color.adjust($accent, $alpha: -0.8);
}
&:active label {
- background-color: transparentize($fg, 0.8)
+ background-color: color.adjust($fg, $alpha: -0.8)
}
}
@@ -64,10 +66,12 @@ window.Bar {
margin-right: .6em;
}
- margin: 0 1em;
+ & {
+ margin: 0 1em;
+ }
trough {
- background-color: transparentize($fg, 0.8);
+ background-color: color.adjust($fg, $alpha: -0.8);
border-radius: $radius;
}