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:
Seth Hillbrand
2026-02-15 13:34:52 -08:00
parent c17ab8607c
commit 3cbc946565
6 changed files with 33 additions and 219 deletions
@@ -13,14 +13,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Stream output panel with HDMI and UVC settings."""
"""Output panel with HDMI settings."""
from PySide6.QtCore import Signal
from PySide6.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel, QComboBox
from PySide6.QtGui import QFont
from ..theme import COLOR_BG_PANEL
from ..widgets import CollapsibleSection, ToggleSwitch
from ..widgets import CollapsibleSection
class _HDMISection(CollapsibleSection):
@@ -89,37 +89,8 @@ class _HDMISection(CollapsibleSection):
return row
class _UVCSection(CollapsibleSection):
"""UVC output enable/disable toggle."""
param_changed = Signal(str, object)
def __init__(self, parent=None):
super().__init__("UVC Output", parent)
self.uvc_toggle = ToggleSwitch()
self.uvc_toggle.toggled.connect(lambda v: self.param_changed.emit("uvc", v))
self.add_widget(self._toggle_row("Enable", self.uvc_toggle))
def set_uvc_enabled(self, enabled: bool):
self.uvc_toggle.set_checked(enabled, emit=False)
@staticmethod
def _toggle_row(text: str, toggle: ToggleSwitch) -> QWidget:
row = QWidget()
layout = QHBoxLayout(row)
layout.setContentsMargins(0, 2, 0, 2)
layout.setSpacing(8)
lbl = QLabel(text)
lbl.setFixedWidth(170)
layout.addWidget(lbl)
layout.addStretch()
layout.addWidget(toggle)
return row
class StreamPanel(QWidget):
"""Panel with HDMI and UVC output settings."""
"""Panel with HDMI output settings."""
param_changed = Signal(str, object)
@@ -137,7 +108,7 @@ class StreamPanel(QWidget):
header_layout = QHBoxLayout(header)
header_layout.setContentsMargins(12, 4, 12, 4)
header_layout.setSpacing(8)
title = QLabel("Stream")
title = QLabel("Output")
title_font = QFont()
title_font.setBold(True)
title_font.setPointSize(11)
@@ -147,11 +118,8 @@ class StreamPanel(QWidget):
outer.addWidget(header)
self.hdmi = _HDMISection()
self.uvc = _UVCSection()
for section in [self.hdmi, self.uvc]:
section.param_changed.connect(self.param_changed.emit)
outer.addWidget(section)
self.hdmi.param_changed.connect(self.param_changed.emit)
outer.addWidget(self.hdmi)
outer.addStretch()
@@ -160,6 +128,3 @@ class StreamPanel(QWidget):
def set_hdmi_color(self, value: int):
self.hdmi.set_hdmi_color(value)
def set_uvc_enabled(self, enabled: bool):
self.uvc.set_uvc_enabled(enabled)