From 63203433dca330715910f375f9d15e60c900d8dd Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Fri, 21 Aug 2026 22:35:58 -0400 Subject: [PATCH] Fix button sizing. --- src/Window.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Window.zig b/src/Window.zig index fd74ba5..0be5341 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -215,6 +215,9 @@ pub fn create(alloc: std.mem.Allocator, app: *adw.Application) !*Window { const new_tab_button = gtk.Button.newFromIconName("tab-new-symbolic"); new_tab_button.as(gtk.Widget).addCssClass("playpen-header-button"); + // A MenuButton centers its inner button in the header bar, but a plain + // Button stretches to fill it; center this one too so the pair match. + new_tab_button.as(gtk.Widget).setValign(.center); new_tab_button.as(gtk.Widget).setTooltipText("New tab (Ctrl+Shift+T)"); _ = gtk.Button.signals.clicked.connect( new_tab_button,