From 23b4c81af139a546a16fc1f680c62a9cd6f3d4c0 Mon Sep 17 00:00:00 2001 From: Henri Cook Date: Sat, 29 Nov 2025 14:53:38 +0000 Subject: [PATCH 1/2] Ensure settings background is dark mode to match everything else, fixes an issue on Ubuntu 25.04/gnome --- src/voxd/gui/settings_dialog.py | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/voxd/gui/settings_dialog.py b/src/voxd/gui/settings_dialog.py index c80ee22c..f16affbb 100644 --- a/src/voxd/gui/settings_dialog.py +++ b/src/voxd/gui/settings_dialog.py @@ -44,6 +44,46 @@ def __init__(self, cfg: AppConfig, parent=None): super().__init__(parent) self.setWindowTitle("Settings") self.cfg = cfg + + # Explicit dark styling to match other dialogs + self.setStyleSheet(""" + QDialog, QWidget { + background-color: #2e2e2e; + color: white; + } + QLabel { + color: white; + background-color: transparent; + } + QScrollArea { + background-color: #2e2e2e; + border: none; + } + QSpinBox, QDoubleSpinBox, QComboBox, QLineEdit { + background-color: #3e3e3e; + color: white; + border: 1px solid #555; + border-radius: 3px; + padding: 2px 5px; + } + QComboBox QAbstractItemView { + background-color: #3e3e3e; + color: white; + selection-background-color: #E03D00; + } + QDialogButtonBox QPushButton { + background-color: #555; + color: white; + border: 1px solid #666; + border-radius: 3px; + padding: 5px 15px; + min-width: 70px; + } + QDialogButtonBox QPushButton:hover { + background-color: #666; + } + """) + # Let the dialog size adapt naturally to its contents; # scroll-area will provide overflow protection. From d2c94896d1ee92a4a4ab2a512eaaa4a47dabd82b Mon Sep 17 00:00:00 2001 From: Henri Cook Date: Sat, 29 Nov 2025 15:06:43 +0000 Subject: [PATCH 2/2] Ensure model manager background is dark like the rest of the app. Fixes an issue on Ubuntu 25.04, gnome --- src/voxd/core/model_manager.py | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/voxd/core/model_manager.py b/src/voxd/core/model_manager.py index 59416153..6fa046a1 100644 --- a/src/voxd/core/model_manager.py +++ b/src/voxd/core/model_manager.py @@ -61,6 +61,52 @@ def __init__(self, parent: QWidget | None = None): self.setWindowTitle("Manage Whisper Models") self.setMinimumWidth(600) + # Explicit dark styling to match other dialogs + self.setStyleSheet(""" + QDialog, QWidget { + background-color: #2e2e2e; + color: white; + } + QTableWidget { + background-color: #2e2e2e; + color: white; + gridline-color: #555; + } + QTableWidget::item { + background-color: #2e2e2e; + color: white; + } + QTableWidget::item:selected { + background-color: #E03D00; + } + QHeaderView::section { + background-color: #3e3e3e; + color: white; + border: 1px solid #555; + padding: 4px; + } + QPushButton { + background-color: #555; + color: white; + border: 1px solid #666; + border-radius: 3px; + padding: 4px 10px; + } + QPushButton:hover { + background-color: #666; + } + QProgressBar { + background-color: #3e3e3e; + border: 1px solid #555; + border-radius: 3px; + text-align: center; + color: white; + } + QProgressBar::chunk { + background-color: #E03D00; + } + """) + layout = QVBoxLayout(self) self.table = QTableWidget(0, 4) self.table.setHorizontalHeaderLabels(["Name", "Size", "Status", "Action"])