From 863915feb13ffd575dce8c19bc88cd2cf5ec537e Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Fri, 8 Jul 2016 20:44:58 +0200 Subject: [PATCH] css: style the calendar color dot remove the unneded and ugly hover effect on buttons and add a subtle shadow. --- data/theme/gtk-styles.css | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css index 2e403ca3..a514f7aa 100644 --- a/data/theme/gtk-styles.css +++ b/data/theme/gtk-styles.css @@ -285,15 +285,25 @@ event-widget.color-light:backdrop { border-radius: 0; border-top-style: none; border-bottom-style: none; - -gtk-icon-effect: none; } .sources-button:hover:not(:backdrop) { background-image: none; text-shadow: none; - -gtk-icon-shadow: 0 1px alpha(black, 0.1); } -.sources-button:not(:backdrop) { +/* defeats the ugly hover effect of the calendar color dot on buttons */ +.calendar-color-image { + -gtk-icon-effect: none; +} + +/* adds a subtle shadow to the calendar color dot when it makes sense */ +button:active:not(:backdrop) .calendar-color-image, +button:checked:not(:backdrop) .calendar-color-image, +.calendars-list modelbutton image:dir(ltr):first-child:not(:backdrop):not(:disabled), +.calendars-list modelbutton image:dir(ltr):last-child:not(:backdrop):not(:disabled), +.calendars-list row image:dir(ltr):first-child:not(:backdrop):not(:disabled), +.calendars-list row image:dir(ltr):last-child:not(:backdrop):not(:disabled), +.sources-button:not(:backdrop):not(:disabled) .calendar-color-image { -gtk-icon-shadow: 0 1px alpha(black, 0.1); }