[gtk+/wip/matthiasc/calendar] Some theming for marked days
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/calendar] Some theming for marked days
- Date: Fri, 4 Sep 2015 05:34:37 +0000 (UTC)
commit d21ec4ce9dc606d43e2dc9a35b08c5dd6cb56e17
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 4 01:26:55 2015 -0400
Some theming for marked days
This is just a placeholder to test the functionality.
gtk/theme/Adwaita/_common.scss | 10 ++++++++--
gtk/theme/Adwaita/gtk-contained-dark.css | 9 ++++++++-
gtk/theme/Adwaita/gtk-contained.css | 9 ++++++++-
3 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 6f70d4f..bcd5f80 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2761,13 +2761,19 @@ GtkCalendar {
text-align: center; /* haha, dream on */
}
.day.dim-label{ color: $insensitive_fg_color; }
-.day:selected {
+.day.day:selected {
color: $selected_fg_color;
background-color: $selected_bg_color;
padding: 0.4em;
border-radius: 3px;
}
-
+.day.holiday,
+.day.weekend {
+ background-color: transparentize(red, 0.9);
+}
+.day.marked {
+ font-weight: bold;
+}
/***********
* Dialogs *
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index c46cb5a..c593cc2 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -3678,12 +3678,19 @@ GtkCalendar {
.header-bar .day.subtitle {
color: #939695; }
-.day:selected {
+.day.day:selected {
color: #ffffff;
background-color: #215d9c;
padding: 0.4em;
border-radius: 3px; }
+.day.holiday,
+.day.weekend {
+ background-color: rgba(255, 0, 0, 0.1); }
+
+.day.marked {
+ font-weight: bold; }
+
/***********
* Dialogs *
***********/
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 050dece..aca3a5b 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -3848,12 +3848,19 @@ GtkCalendar {
.header-bar .day.subtitle {
color: #8d9091; }
-.day:selected {
+.day.day:selected {
color: #ffffff;
background-color: #4a90d9;
padding: 0.4em;
border-radius: 3px; }
+.day.holiday,
+.day.weekend {
+ background-color: rgba(255, 0, 0, 0.1); }
+
+.day.marked {
+ font-weight: bold; }
+
/***********
* Dialogs *
***********/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]