[gtk+] Adwaita: colorbutton colorswatch shadow fix
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: colorbutton colorswatch shadow fix
- Date: Sun, 17 Apr 2016 21:15:24 +0000 (UTC)
commit 86ba132ded7a762daed861bdb4169a82a14b6917
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sun Apr 17 23:08:26 2016 +0200
Adwaita: colorbutton colorswatch shadow fix
reset colorswatch box-shadow on active and checked state as well
following latest style changes.
gtk/theme/Adwaita/_common.scss | 12 +++++++-----
gtk/theme/Adwaita/gtk-contained.css | 4 ++--
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 15c3dab..0d1c286 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -963,12 +963,14 @@ button.color {
colorswatch:only-child {
&, overlay { border-radius: 0; }
- @if $variant == 'light' {
- box-shadow: 0 1px _text_shadow_color();
+ @if $variant == 'light' { box-shadow: 0 1px _text_shadow_color(); }
+ }
- &:disabled,
- &:backdrop { box-shadow: none; }
- }
+ @if $variant == 'light' {
+ &:disabled,
+ &:backdrop,
+ &:active,
+ &:checked { colorswatch:only-child { box-shadow: none; }}
}
}
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index ab7d041..8539fa1 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1368,8 +1368,8 @@ button.color {
box-shadow: 0 1px rgba(255, 255, 255, 0.76923); }
button.color colorswatch:only-child, button.color colorswatch:only-child overlay {
border-radius: 0; }
- button.color colorswatch:only-child:disabled, button.color colorswatch:only-child:backdrop {
- box-shadow: none; }
+ button.color:disabled colorswatch:only-child, button.color:backdrop colorswatch:only-child,
button.color:active colorswatch:only-child, button.color:checked colorswatch:only-child {
+ box-shadow: none; }
/*********
* Links *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]