From e770a40bebecf702e3b03fc4d7fe756c2da315f1 Mon Sep 17 00:00:00 2001 From: nevaforget Date: Fri, 27 Mar 2026 13:57:16 +0100 Subject: [PATCH] fix: center button content vertically for square appearance Reduce icon-label spacing and vertically center the content box inside action buttons so they appear visually square. --- src/moonset/panel.py | 3 ++- src/moonset/style.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/moonset/panel.py b/src/moonset/panel.py index bfe758d..41db3c0 100644 --- a/src/moonset/panel.py +++ b/src/moonset/panel.py @@ -170,9 +170,10 @@ class PanelWindow(Gtk.ApplicationWindow): def _create_action_button(self, action_def: ActionDef) -> Gtk.Button: """Create a single action button with icon and label.""" button_content = Gtk.Box( - orientation=Gtk.Orientation.VERTICAL, spacing=8 + orientation=Gtk.Orientation.VERTICAL, spacing=4 ) button_content.set_halign(Gtk.Align.CENTER) + button_content.set_valign(Gtk.Align.CENTER) icon = Gtk.Image.new_from_icon_name(action_def.icon_name) icon.add_css_class("action-icon") diff --git a/src/moonset/style.css b/src/moonset/style.css index b5531af..fbb6241 100644 --- a/src/moonset/style.css +++ b/src/moonset/style.css @@ -13,7 +13,7 @@ window.wallpaper { background-color: #1a1a2e; } -/* Action button — 120x120px card */ +/* Action button — square card */ .action-button { min-width: 120px; min-height: 120px;