using Gtk 4.0; using Adw 1; template $SubscriptionInfoDialog : Adw.Dialog { title: "Subscription Info"; Adw.ToolbarView { [top] Adw.HeaderBar {} Adw.Clamp { Gtk.Box { orientation: vertical; spacing: 8; margin-top: 8; margin-bottom: 8; margin-start: 8; margin-end: 8; Gtk.ListBox { Adw.EntryRow display_name_entry { title: "Display Name"; } Adw.ActionRow { title: "Topic"; subtitle-selectable: true; subtitle: bind (template.subscription as <$TopicSubscription>).topic as ; styles [ "property" ] } Adw.ActionRow { title: "Server"; subtitle: bind (template.subscription as <$TopicSubscription>).server as ; subtitle-selectable: true; styles [ "property" ] } Adw.SwitchRow muted_switch_row { title: "Muted"; } Adw.SpinRow retention_hours_spin_row { title: "Retention Hours"; subtitle: "How long messages are stored (0 = forever)"; } styles [ "boxed-list" ] } } } } }