From c699beb6fd1dcc079f9a3ad65739dec261d92878 Mon Sep 17 00:00:00 2001 From: thanhnv Date: Wed, 16 Sep 2026 00:23:03 +0900 Subject: [PATCH] fix: align settings navigation item --- presentation/shell/top_bar.py | 8 ++++---- ui/icons.py | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/presentation/shell/top_bar.py b/presentation/shell/top_bar.py index 0fbcecc..adf83d1 100644 --- a/presentation/shell/top_bar.py +++ b/presentation/shell/top_bar.py @@ -59,11 +59,11 @@ class TopBarMixin: # that number. Adding it again here made the row taller than the button # (28 wanted, 20 given), which both clipped the icon and pushed the text # 8px below an even pitch with Dashboard / Giám sát. - srow.setContentsMargins(_NAV_ROW_INSET, 0, 8, 0) - srow.setSpacing(_NAV_ROW_GAP) + srow.setContentsMargins(_NAV_ROW_INSET + 2, 0, 8, 0) + srow.setSpacing(_NAV_ROW_GAP + 4) self._nav_settings_icon = QLabel() - self._nav_settings_icon.setPixmap(_icon("settings").pixmap(16, 16)) - self._nav_settings_icon.setFixedSize(16, 16) + self._nav_settings_icon.setPixmap(_icon("gear").pixmap(16, 16)) + self._nav_settings_icon.setFixedSize(22, 16) self._nav_settings_text = QLabel(tr("app.settings")) srow.addWidget(self._nav_settings_icon) srow.addWidget(self._nav_settings_text) diff --git a/ui/icons.py b/ui/icons.py index dca22d5..b244953 100644 --- a/ui/icons.py +++ b/ui/icons.py @@ -78,8 +78,7 @@ _PATHS = { "briefcase": '' '', "award": '', - "gear": '' - '', + "gear": '', "globe": '' '', "logout": '' @@ -199,8 +198,7 @@ _PATHS = { '', # = beaker "sparkle": '' '', # = sparkles - "settings": '' - '', # = gear + "settings": '', # = gear }