From 1ab28d3e9533e7aa413802dc407544fb68ecff8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Fortin=20Tam?= Date: Fri, 25 Aug 2023 23:05:12 -0400 Subject: [PATCH] month-cell: Bold month name & 1st day labels Make it easier to track which month you are crossing while scrolling. Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/962 Part-of: --- src/gui/views/gcal-month-cell.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/views/gcal-month-cell.c b/src/gui/views/gcal-month-cell.c index 99f524b8..86bf2dfc 100644 --- a/src/gui/views/gcal-month-cell.c +++ b/src/gui/views/gcal-month-cell.c @@ -488,6 +488,13 @@ gcal_month_cell_set_date (GcalMonthCell *self, { g_autofree gchar *month_name = g_date_time_format (date, "%b"); gtk_label_set_text (self->month_name_label, month_name); + gtk_widget_add_css_class (GTK_WIDGET (self->month_name_label), "heading"); + gtk_widget_add_css_class (GTK_WIDGET (self->day_label), "heading"); + } + else + { + gtk_widget_remove_css_class (GTK_WIDGET (self->month_name_label), "heading"); + gtk_widget_remove_css_class (GTK_WIDGET (self->day_label), "heading"); } update_weather (self);