From f6585f20f4c4155ffd9698ec4c70c53cca7f7d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Mon, 1 Apr 2024 10:18:20 -0700 Subject: [PATCH 1/2] HeaderLabel: wrap title, halign FILL --- lib/Widgets/HeaderLabel.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Widgets/HeaderLabel.vala b/lib/Widgets/HeaderLabel.vala index 3101de191..bacf6c5ef 100644 --- a/lib/Widgets/HeaderLabel.vala +++ b/lib/Widgets/HeaderLabel.vala @@ -69,12 +69,12 @@ public class Granite.HeaderLabel : Gtk.Widget { construct { var label_widget = new Gtk.Label (label) { + wrap = true, xalign = 0 }; label_widget.add_css_class ("heading"); label_widget.set_parent (this); - halign = Gtk.Align.START; ((Gtk.BoxLayout) get_layout_manager ()).orientation = Gtk.Orientation.VERTICAL; bind_property ("label", label_widget, "label"); From c32fabaf497a60427e69583587706aa9769bdae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 1 May 2024 10:29:18 -0700 Subject: [PATCH 2/2] Update HeaderLabel.vala --- lib/Widgets/HeaderLabel.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Widgets/HeaderLabel.vala b/lib/Widgets/HeaderLabel.vala index bacf6c5ef..94e2b0652 100644 --- a/lib/Widgets/HeaderLabel.vala +++ b/lib/Widgets/HeaderLabel.vala @@ -5,7 +5,8 @@ /** - * HeaderLabel is a start-aligned {@link Gtk.Label} with the Granite H4 style class + * HeaderLabel contains a start-aligned {@link Gtk.Label} with the "heading" style class. + * Optionally it can contain a secondary {@link Gtk.Label} to provide additional context */ public class Granite.HeaderLabel : Gtk.Widget { /**