diff --git a/ui/main_window_new.py b/ui/main_window_new.py index abb7938..2ec4e1f 100644 --- a/ui/main_window_new.py +++ b/ui/main_window_new.py @@ -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)