From 4718c165ad09f2a597f8352214dd20a58dc25639 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Wed, 23 Jul 2014 13:31:05 +0200 Subject: [PATCH] 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 63739133cf..0e6d51a70a 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 1f1895e233..ef66173932 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 {