[gtk+] Adwaita: list row hover color
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: list row hover color
- Date: Thu, 16 Oct 2014 12:23:55 +0000 (UTC)
commit 111f72e891a0132d4a864f66d9cd343e92f9a12e
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu Oct 16 14:22:20 2014 +0200
Adwaita: list row hover color
Now it's based of fg color, so the list row gets darker on the
bright variant and brighter on the dark variant, similarly to what
we do for spinbutton buttons.
gtk/resources/theme/Adwaita/_common.scss | 4 ++--
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 4 ++--
gtk/resources/theme/Adwaita/gtk-contained.css | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 2d8a5fb..030781f 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -2421,7 +2421,7 @@ GtkScrolledWindow {
border-radius: 0; // and no rounded corners
box-shadow: none; // and no box-shadow
&:hover {
- background-color: mix(black, $base_color, 5%);
+ background-color: mix($fg_color, $base_color, 5%);
}
&:active {
box-shadow: inset 0 2px 2px -2px transparentize(black,0.8);
@@ -2429,7 +2429,7 @@ GtkScrolledWindow {
&:selected {
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black,0.5); }
&:hover {
- background-color: mix(black, $selected_bg_color, 10%);
+ background-color: mix($fg_color, $selected_bg_color, 10%);
}
&:backdrop { background-color: $selected_bg_color; }
}
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 2449067..7f10383 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -3556,13 +3556,13 @@ GtkCalendar.header .list-row.button.titlebutton {
border-radius: 0;
box-shadow: none; }
.list-row.button:hover {
- background-color: #262626; }
+ background-color: #323232; }
.list-row.button:active {
box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2); }
.list-row.button:selected:active {
box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5); }
.list-row.button:selected:hover {
- background-color: #1d538c; }
+ background-color: #356ba4; }
.list-row.button:selected:backdrop {
background-color: #215d9c; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index c52a29c..edb473e 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -3709,13 +3709,13 @@ GtkCalendar.header .list-row.button.titlebutton {
border-radius: 0;
box-shadow: none; }
.list-row.button:hover {
- background-color: #f2f2f2; }
+ background-color: #f4f4f4; }
.list-row.button:active {
box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2); }
.list-row.button:selected:active {
box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5); }
.list-row.button:selected:hover {
- background-color: #4281c3; }
+ background-color: #4786c8; }
.list-row.button:selected:backdrop {
background-color: #4a90d9; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]