new design settings

This commit is contained in:
Your Name 2026-01-08 23:15:53 +03:00
parent 33736a11fd
commit 92a8022261

View File

@ -105,6 +105,15 @@ class MainWindowNew(QMainWindow):
def apply_theme(self):
self.app.setStyleSheet(THEME_NIGHT if self.is_night else THEME_DAY)
def _sync_topbar(self, idx: int):
is_settings = idx == self.settings_idx
self.menu_button.setVisible(not is_settings)
self.lbl_bt.setVisible(not is_settings)
self.lbl_time.setVisible(not is_settings)
self.btn_settings.setText("" if is_settings else "")
if is_settings:
self.lbl_source.setText("Настройки")
def toggle_settings(self):
if self.stack.currentIndex() == self.settings_idx:
self.go(self.last_non_settings_idx)
@ -125,3 +134,4 @@ class MainWindowNew(QMainWindow):
self.lbl_source.setText("Car")
elif idx == 2:
self.lbl_source.setText("Maps")
self._sync_topbar(idx)