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: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/478>
This commit is contained in:
Jean-François Fortin Tam
2025-07-15 15:46:41 -04:00
parent 1b500973e6
commit 1ab28d3e95
+7
View File
@@ -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);