Clean up GUI panels and fix sidebar icons
Rename the Stream panel to Output throughout the app, menu, sidebar, and docs since the S3 does not support network streaming. Remove the UVC toggle section from the output panel and the recording section from the console panel, along with all controller wiring for both. Replace emoji sidebar icons for Color and Output with Unicode geometric shapes that render correctly in Qt. Wire the Help > Documentation menu action to open the GitLab repository URL. Update the GUI guide to match all panel and menu changes.
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
|
||||
import logging
|
||||
|
||||
from PySide6.QtCore import Qt, QTimer
|
||||
from PySide6.QtGui import QKeySequence, QShortcut
|
||||
from PySide6.QtCore import Qt, QTimer, QUrl
|
||||
from PySide6.QtGui import QDesktopServices, QKeySequence, QShortcut
|
||||
from PySide6.QtWidgets import (
|
||||
QMainWindow, QWidget, QHBoxLayout, QScrollArea, QStackedWidget, QSizePolicy,
|
||||
)
|
||||
@@ -112,7 +112,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
for i, (label, key) in enumerate([
|
||||
("Camera", "1"), ("Color", "2"), ("Console", "3"),
|
||||
("Stream", "4"), ("Settings", "5"),
|
||||
("Output", "4"), ("Settings", "5"),
|
||||
]):
|
||||
action = view_menu.addAction(label)
|
||||
action.setShortcut(QKeySequence(f"Ctrl+{key}"))
|
||||
@@ -124,7 +124,10 @@ class MainWindow(QMainWindow):
|
||||
fullscreen_action.triggered.connect(self._toggle_fullscreen)
|
||||
|
||||
help_menu = menu_bar.addMenu("Help")
|
||||
help_menu.addAction("Documentation")
|
||||
doc_action = help_menu.addAction("Documentation")
|
||||
doc_action.triggered.connect(
|
||||
lambda: QDesktopServices.openUrl(QUrl("https://gitlab.com/sethhillbrand/yolocam-linux"))
|
||||
)
|
||||
|
||||
def _switch_panel(self, index: int):
|
||||
if 0 <= index < self._stacked.count():
|
||||
|
||||
Reference in New Issue
Block a user