[libadwaita/wip/exalm/background-colors: 15/19] stylesheet: Update .content row hover/active
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/background-colors: 15/19] stylesheet: Update .content row hover/active
- Date: Wed, 1 Sep 2021 12:35:36 +0000 (UTC)
commit 6a6a94462b29cb4aca0ebec706a4ef5c3c6b3076
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Sep 1 15:02:33 2021 +0500
stylesheet: Update .content row hover/active
Base it on text color, use gtkmix().
src/stylesheet/widgets/_lists.scss | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/stylesheet/widgets/_lists.scss b/src/stylesheet/widgets/_lists.scss
index 8828808a..d5fdc7a7 100644
--- a/src/stylesheet/widgets/_lists.scss
+++ b/src/stylesheet/widgets/_lists.scss
@@ -233,11 +233,11 @@ listview.content {
&.activatable {
&.has-open-popup,
&:hover {
- background-color: mix($fg_color, $base_color, 5%);
+ background-color: gtkmix(currentColor, $base_color, 3%);
}
&:active {
- background-color: mix($fg_color, $base_color, 10%);
+ background-color: gtkmix(currentColor, $base_color, 8%);
}
}
}
@@ -247,16 +247,17 @@ listview.content {
// Nested rows background
list.nested > row:not(:selected) {
- background-color: mix($bg_color, $base_color, 50%);
+ $_nested_row_bg: mix($bg_color, $base_color, 50%);
+ background-color: $_nested_row_bg;
&.activatable {
&.has-open-popup,
&:hover {
- background-color: mix($fg_color, $base_color, 5%);
+ background-color: gtkmix(currentColor, $_nested_row_bg, 3%);
}
&:active {
- background-color: mix($fg_color, $base_color, 10%);
+ background-color: gtkmix(currentColor, $_nested_row_bg, 8%);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]