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:
@@ -488,6 +488,13 @@ gcal_month_cell_set_date (GcalMonthCell *self,
|
|||||||
{
|
{
|
||||||
g_autofree gchar *month_name = g_date_time_format (date, "%b");
|
g_autofree gchar *month_name = g_date_time_format (date, "%b");
|
||||||
gtk_label_set_text (self->month_name_label, month_name);
|
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);
|
update_weather (self);
|
||||||
|
|||||||
Reference in New Issue
Block a user