style: relabel theme entries, tuck prototype views into the View menu
Legacy/Portrait themes become Sunrise (default)/Sunset. Automation View and Portrait (now Playlist) Mode leave the menubar for the View menu with in-progress labels; Return to Main View stays top-level since it only shows inside the automation view. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1798,33 +1798,36 @@ class MainWindow(QMainWindow):
|
||||
quit_action.triggered.connect(self.close)
|
||||
file_menu.addAction(quit_action)
|
||||
|
||||
self._enter_automation_view_action = QAction("Automation View", self)
|
||||
# Prototype views live in the View menu (below the themes), not on the
|
||||
# menubar; only their in-progress labels changed, the internal
|
||||
# action/slot names stay.
|
||||
self._enter_automation_view_action = QAction("Automation View (prototyping)", self)
|
||||
self._enter_automation_view_action.setShortcut(QKeySequence("Ctrl+5"))
|
||||
self._enter_automation_view_action.triggered.connect(self.enter_compact_automation_view)
|
||||
menu_bar.addAction(self._enter_automation_view_action)
|
||||
|
||||
# Stays top-level: it only shows while INSIDE the automation view,
|
||||
# where the way back must not hide in a menu.
|
||||
self._return_main_view_action = QAction("Return to Main View", self)
|
||||
self._return_main_view_action.setShortcut(QKeySequence("Ctrl+Shift+5"))
|
||||
self._return_main_view_action.triggered.connect(self._return_from_compact_automation_view)
|
||||
menu_bar.addAction(self._return_main_view_action)
|
||||
|
||||
self._portrait_mode_action = QAction("Portrait Mode", self)
|
||||
self._portrait_mode_action = QAction("Playlist Mode (work in progress)", self)
|
||||
self._portrait_mode_action.setShortcut(QKeySequence("Ctrl+6"))
|
||||
self._portrait_mode_action.triggered.connect(self.enter_portrait_mode)
|
||||
menu_bar.addAction(self._portrait_mode_action)
|
||||
|
||||
view_menu = menu_bar.addMenu("View")
|
||||
|
||||
self._theme_action_group = QActionGroup(self)
|
||||
self._theme_action_group.setExclusive(True)
|
||||
|
||||
self._use_legacy_theme_action = QAction("Legacy Theme", self)
|
||||
self._use_legacy_theme_action = QAction("Sunrise Theme (default)", self)
|
||||
self._use_legacy_theme_action.setCheckable(True)
|
||||
self._use_legacy_theme_action.setChecked(self._theme_mode == THEME_ORIGINAL)
|
||||
self._use_legacy_theme_action.triggered.connect(self.use_legacy_theme)
|
||||
self._theme_action_group.addAction(self._use_legacy_theme_action)
|
||||
|
||||
self._use_portrait_theme_action = QAction("Portrait Theme", self)
|
||||
self._use_portrait_theme_action = QAction("Sunset Theme", self)
|
||||
self._use_portrait_theme_action.setCheckable(True)
|
||||
self._use_portrait_theme_action.setChecked(self._theme_mode == THEME_PORTRAIT)
|
||||
self._use_portrait_theme_action.triggered.connect(self.use_portrait_theme)
|
||||
@@ -1833,6 +1836,9 @@ class MainWindow(QMainWindow):
|
||||
view_menu.addAction(self._use_legacy_theme_action)
|
||||
view_menu.addAction(self._use_portrait_theme_action)
|
||||
view_menu.addSeparator()
|
||||
view_menu.addAction(self._portrait_mode_action)
|
||||
view_menu.addAction(self._enter_automation_view_action)
|
||||
view_menu.addSeparator()
|
||||
|
||||
show_samples_action = QAction("Show Sample List", self)
|
||||
show_samples_action.setCheckable(True)
|
||||
|
||||
Reference in New Issue
Block a user