diff --git a/presentation/shell/nav_rail.py b/presentation/shell/nav_rail.py index 20104db..eb4b9a4 100644 --- a/presentation/shell/nav_rail.py +++ b/presentation/shell/nav_rail.py @@ -81,7 +81,7 @@ class NavRailMixin: # 16px icon up with the nav items' icons below (1px list frame + item # padding) — same indent level, same icon size as e.g. Dashboard. toggle_row = QHBoxLayout() - toggle_row.setContentsMargins(0, 8, 10, 8) + toggle_row.setContentsMargins(10, 8, 10, 8) toggle_row.addWidget(self._nav_toggle_btn, 0, Qt.AlignLeft) toggle_row.addStretch(1) nvl.addLayout(toggle_row) @@ -111,7 +111,7 @@ class NavRailMixin: self.nav_project_btn.menu().aboutToShow.connect(self._fill_rail_project_menu) self.nav_project_btn.setVisible(False) head = QVBoxLayout() - head.setContentsMargins(6, 0, 6, 6) + head.setContentsMargins(10, 0, 10, 6) head.setSpacing(6) head.addWidget(self.nav_project) head.addWidget(self.nav_project_btn) @@ -136,7 +136,7 @@ class NavRailMixin: self._nav_scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) scroll_body = QWidget() sv = QVBoxLayout(scroll_body) - sv.setContentsMargins(0, 0, 0, 0) + sv.setContentsMargins(6, 0, 6, 0) sv.setSpacing(0) sv.addWidget(self.nav, 0) # RECENTS — the threads of the project named in the picker above, right diff --git a/presentation/shell/rail_metrics.py b/presentation/shell/rail_metrics.py index 5aa7d17..f1e478b 100644 --- a/presentation/shell/rail_metrics.py +++ b/presentation/shell/rail_metrics.py @@ -13,7 +13,7 @@ from PySide6.QtWidgets import QStyledItemDelegate # ---- kích thước --------------------------------------------------------- _NAV_EXPANDED_WIDTH = 150 _NAV_COLLAPSED_WIDTH = 54 -_NAV_ROW_INSET = 4 +_NAV_ROW_INSET = 8 _NAV_ROW_GAP = 6 _NAV_MIN_WIDTH = 132 _NAV_MAX_SHARE = 0.22 diff --git a/theme/qss.py b/theme/qss.py index ee76110..5559592 100644 --- a/theme/qss.py +++ b/theme/qss.py @@ -45,7 +45,7 @@ QWidget#contentArea { background: $bg; } carries a 2px accent marker, so which section you are in survives even at a glance or for anyone who cannot separate the two greys. */ QWidget#navWrap QTreeWidget::item, QWidget#navWrap QListWidget::item { - padding: 6px 4px; border-radius: ${radius}px; + padding: 6px 10px; border-radius: ${radius}px; } QWidget#navWrap QTreeWidget::item:hover, QWidget#navWrap QListWidget::item:hover { background: $nav_hover;