gui: Update to libadwaita's custom properties and style classes
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1440 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/624>
This commit is contained in:
@@ -182,7 +182,7 @@ update_header_func (GtkListBoxRow *row,
|
||||
{
|
||||
header = g_object_new (GTK_TYPE_LABEL,
|
||||
"label", e_source_get_display_name (parent),
|
||||
"css-classes", (const gchar * const []) { "header", NULL },
|
||||
"css-classes", (const gchar * const []) { "heading", "dimmed", NULL },
|
||||
"xalign", 0.0,
|
||||
"margin-top", 18,
|
||||
"margin-bottom", 6,
|
||||
@@ -195,7 +195,7 @@ update_header_func (GtkListBoxRow *row,
|
||||
{
|
||||
header = g_object_new (GTK_TYPE_LABEL,
|
||||
"label", e_source_get_display_name (parent),
|
||||
"css-classes", (const gchar * const []) { "header", NULL },
|
||||
"css-classes", (const gchar * const []) { "heading", "dimmed", NULL },
|
||||
"xalign", 0.0,
|
||||
"margin-top", 18,
|
||||
"margin-bottom", 6,
|
||||
@@ -311,3 +311,4 @@ gcal_calendar_list_init (GcalCalendarList *self)
|
||||
{
|
||||
gtk_widget_init_template (GTK_WIDGET (self));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ template $GcalMonthView: Widget {
|
||||
[header]
|
||||
Box {
|
||||
styles [
|
||||
"header",
|
||||
"heading",
|
||||
"month-header",
|
||||
"view",
|
||||
]
|
||||
@@ -44,70 +46,42 @@ template $GcalMonthView: Widget {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
|
||||
Label label_1 {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
|
||||
Label label_2 {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
|
||||
Label label_3 {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
|
||||
Label label_4 {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
|
||||
Label label_5 {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
|
||||
Label label_6 {
|
||||
margin-start: 6;
|
||||
hexpand: true;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"header",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-4
@@ -15,10 +15,7 @@ calendar-view {
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
calendar-view.header,
|
||||
label.header {
|
||||
font-size: 10pt;
|
||||
font-weight: bold;
|
||||
calendar-view box.header label {
|
||||
opacity: var(--dim-opacity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user