[libadwaita/wip/exalm/background-colors: 48/48] Restore button colors
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/background-colors: 48/48] Restore button colors
- Date: Wed, 8 Sep 2021 07:16:21 +0000 (UTC)
commit 21e312c3129677513fb1c04e5f5795f7cfa8ce43
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Sep 6 22:31:05 2021 +0500
Restore button colors
src/stylesheet/widgets/_buttons.scss | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index bee3c20e..da495f21 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -1,3 +1,10 @@
+$button_color: gtkalpha(currentColor, .1);
+$button_hover_color: gtkalpha(currentColor, .15);
+$button_active_color: gtkalpha(currentColor, .25);
+$button_checked_color: gtkalpha(currentColor, .2);
+$button_checked_hover_color: gtkalpha(currentColor, .25);
+$button_checked_active_color: gtkalpha(currentColor, .35);
+
// stuff for .needs-attention
@keyframes needs_attention {
from { background-image: radial-gradient(farthest-side, $accent_bg_color 0%, transparent 0%); }
@@ -11,7 +18,7 @@ button {
min-width: 16px;
padding: 5px 10px;
border-radius: $button_radius;
- background-color: gtkalpha(currentColor, .1);
+ background-color: $button_color;
font-weight: bold;
@if $contrast == 'high' {
@@ -22,24 +29,24 @@ button {
transition: $button_transition;
&:hover {
- background-color: gtkalpha(currentColor, .15);
+ background-color: $button_hover_color;
}
&.keyboard-activating,
&:active {
- background-color: gtkalpha(currentColor, .25);
+ background-color: $button_active_color;
}
&:checked {
- background-color: gtkalpha(currentColor, .2);
+ background-color: $button_checked_color;
&:hover {
- background-color: gtkalpha(currentColor, .25);
+ background-color: $button_checked_hover_color;
}
&.keyboard-activating,
&:active {
- background-color: gtkalpha(currentColor, .35);
+ background-color: $button_checked_active_color;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]