[gnome-calendar] css: style the calendar color dot
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] css: style the calendar color dot
- Date: Fri, 8 Jul 2016 18:47:18 +0000 (UTC)
commit 863915feb13ffd575dce8c19bc88cd2cf5ec537e
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Fri Jul 8 20:44:58 2016 +0200
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 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css
index 2e403ca..a514f7a 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]