Fix button sizing.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user