From 32497839baea15a25d9230b95ba1ba68448fa40b Mon Sep 17 00:00:00 2001 From: Heliguy Date: Wed, 7 Feb 2024 04:09:04 -0500 Subject: [PATCH] Properly center align New Snapshot button --- data/ui/snapshots.blp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/data/ui/snapshots.blp b/data/ui/snapshots.blp index f7ba0c0..988b2bc 100644 --- a/data/ui/snapshots.blp +++ b/data/ui/snapshots.blp @@ -18,22 +18,20 @@ template $SnapshotsWindow: Adw.Window { [bottom] ActionBar action_bar { - Box { + [center] + Button new_snapshot { halign: center; - hexpand: true; - Button new_snapshot { - sensitive: bind action_bar.revealed; - margin-top: 6; - margin-bottom: 6; - styles[ - "pill", - "suggested-action" - ] + sensitive: bind action_bar.revealed; + margin-top: 6; + margin-bottom: 6; + styles[ + "pill", + "suggested-action" + ] - Adw.ButtonContent { - label: _("New Snapshot"); - icon-name: "plus-large-symbolic"; - } + Adw.ButtonContent { + label: _("New Snapshot"); + icon-name: "plus-large-symbolic"; } } }