[gtk+] Adwaita: backdrop check/radio fix
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: backdrop check/radio fix
- Date: Wed, 23 Jul 2014 11:33:51 +0000 (UTC)
commit 4718c165ad09f2a597f8352214dd20a58dc25639
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Wed Jul 23 13:31:05 2014 +0200
Adwaita: backdrop check/radio fix
Set the correct color wrt the dark variant for checks/radios on
selected treeview rows.
gtk/resources/theme/Adwaita/_common.scss | 6 ++++--
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 4 ++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 6373913..0e6d51a 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1665,7 +1665,9 @@ $asset_suffix: if($variant=='dark', '-dark', '');
color: transparentize($selected_fg_color,0.9);
&:active {
color: $selected_fg_color;
- &:backdrop { color: $backdrop_base_color; }
+ &:backdrop {
+ color: if($variant=='light',$backdrop_base_color,$backdrop_fg_color);
+ }
}
}
&:backdrop {
@@ -2185,7 +2187,7 @@ GtkCalendar {
@extend %undecorated_button;
color: $fg_color;
}
- &:backdrop { color: transparentize($backdrop_fg_color,0.55); }
+ &:backdrop { color: transparentize($backdrop_fg_color,0.55); }
}
&.highlight { color: gtkalpha(currentColor,0.55); }
&:backdrop { border-color: $backdrop_borders_color; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 1f1895e..ef66173 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1818,7 +1818,7 @@ GtkSwitch {
.view.check:selected:active, .view.check:selected:focus:active {
color: white; }
.view.check:selected:active:backdrop, .view.check:selected:focus:active:backdrop {
- color: #2c2c2c; }
+ color: #c9cbc9; }
.view.check:backdrop {
color: rgba(201, 203, 201, 0.1); }
.view.check:backdrop:selected {
@@ -1972,7 +1972,7 @@ GtkSwitch {
.view.radio:selected:active, .view.radio:selected:focus:active {
color: white; }
.view.radio:selected:active:backdrop, .view.radio:selected:focus:active:backdrop {
- color: #2c2c2c; }
+ color: #c9cbc9; }
.view.radio:backdrop {
color: rgba(201, 203, 201, 0.1); }
.view.radio:backdrop:selected {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]