Skip to content

Commit 72f5fd3

Browse files
committed
feat(ui): remove visual theme from settings dialog
1 parent 3eb9e0e commit 72f5fd3

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

src/ui/dialogs/settings_dialog.py

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,7 @@ def setup_ui(self):
4444

4545
layout.addLayout(path_layout)
4646

47-
# --- Theme Section ---
48-
theme_layout = QHBoxLayout()
49-
theme_label = QLabel("Visual Theme:")
50-
self.theme_combo = QComboBox()
51-
52-
# Options
53-
self.themes = [
54-
("BioMetrics Default (Dark)", "default"),
55-
("Drake Interplanetary (Industrial)", "drake"),
56-
("Origin Jumpworks (Luxury)", "origin"),
57-
("Aegis Dynamics (Military)", "aegis"),
58-
("Clean Light", "light"),
59-
("Auto (System)", "auto")
60-
]
61-
62-
current_theme = self.config_manager.config.get("theme", "auto")
63-
if current_theme == "dark": current_theme = "default" # normalizing
64-
65-
for name, key in self.themes:
66-
self.theme_combo.addItem(name, key)
67-
68-
# Set current selection
69-
index = self.theme_combo.findData(current_theme)
70-
if index >= 0:
71-
self.theme_combo.setCurrentIndex(index)
72-
else:
73-
self.theme_combo.setCurrentIndex(self.theme_combo.findData("auto"))
74-
75-
theme_layout.addWidget(theme_label)
76-
theme_layout.addWidget(self.theme_combo)
77-
layout.addLayout(theme_layout)
47+
# --- Theme Section removed ---
7848

7949
# Custom PTU Path Section
8050
ptu_layout = QVBoxLayout()
@@ -196,10 +166,7 @@ def save_settings(self):
196166
# Save custom PTU path (no strict validation, just save)
197167
self.config_manager.set_custom_ptu_path(ptu_path)
198168

199-
# Save Theme
200-
selected_theme = self.theme_combo.currentData()
201-
# Update via manager (also saves)
202-
self.theme_manager.set_theme_mode(selected_theme)
169+
203170

204171

205172

0 commit comments

Comments
 (0)