From 56b40b9b716fea5149eb992406851e34dfa5f238 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 9 Aug 2026 13:34:01 +0545 Subject: [PATCH] feat(settings): dock position dropdown --- src/window/settings/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/window/settings/main.py b/src/window/settings/main.py index 2438041..74172a3 100644 --- a/src/window/settings/main.py +++ b/src/window/settings/main.py @@ -260,6 +260,10 @@ SECTION_ICONS = { DEFAULT_SECTION_ICON = "misc/logo.svg" +ENUM_OPTIONS = { + "dock.position": ["bottom", "left", "right"], +} + def humanize_key(key): return " ".join(word.capitalize() for word in key.replace("_", " ").split()) @@ -366,6 +370,8 @@ class SettingsWindow(Gtk.Window): return SettingsPage(f"{humanize_key(section)} Settings", rows) def _infer_widget(self, full_key, value): + if full_key in ENUM_OPTIONS: + return SettingsComboBox(full_key, ENUM_OPTIONS[full_key]) if isinstance(value, bool): return SettingsSwitch(full_key) if isinstance(value, list):