[gnome-calendar/cdavis/accent-color-fixes: 2/2] week-header: Don't dim selected labels
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/cdavis/accent-color-fixes: 2/2] week-header: Don't dim selected labels
- Date: Wed, 16 Feb 2022 01:14:10 +0000 (UTC)
commit c974500186fada4a617b106e42c775323ab47bc4
Author: Christopher Davis <christopherdavis gnome org>
Date: Tue Feb 15 17:12:21 2022 -0800
week-header: Don't dim selected labels
The contrast of .dim-label and .accent isn't optimal.
To preserve proper contrast of selected weeks,
remove .dim-label while .accent is applied.
src/gui/views/gcal-week-header.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/gui/views/gcal-week-header.c b/src/gui/views/gcal-week-header.c
index 571f2342..00a0b4f6 100644
--- a/src/gui/views/gcal-week-header.c
+++ b/src/gui/views/gcal-week-header.c
@@ -1032,11 +1032,15 @@ update_title (GcalWeekHeader *self)
{
gtk_widget_add_css_class (header->weekday_name_label, "accent");
gtk_widget_add_css_class (header->day_number_label, "accent");
+ gtk_widget_remove_css_class (header->weekday_name_label, "dim-label");
+ gtk_widget_remove_css_class (header->day_number_label, "dim-label");
}
else
{
gtk_widget_remove_css_class (header->weekday_name_label, "accent");
gtk_widget_remove_css_class (header->day_number_label, "accent");
+ gtk_widget_add_css_class (header->weekday_name_label, "dim-label");
+ gtk_widget_add_css_class (header->day_number_label, "dim-label");
}
weekday_date = g_strdup_printf ("%d", n_day);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]