From e17bd982fe1c693aa5859501f47e7c7fc02db06d Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 28 Jul 2025 11:47:55 -0400 Subject: [PATCH] make icon theme searchable --- Modules/Settings/AppearanceTab.qml | 9 ++++++++- Widgets/DankDropdown.qml | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Modules/Settings/AppearanceTab.qml b/Modules/Settings/AppearanceTab.qml index 4ca142db..3f5ed2c3 100644 --- a/Modules/Settings/AppearanceTab.qml +++ b/Modules/Settings/AppearanceTab.qml @@ -87,7 +87,14 @@ ScrollView { text: "Icon Theme" description: "Select icon theme" currentValue: Prefs.iconTheme - options: Prefs.availableIconThemes + enableFuzzySearch: true + popupWidthOffset: 100 + maxPopupHeight: 400 + options: { + // Force refresh of icon themes to prevent stale data + Prefs.detectAvailableIconThemes(); + return Prefs.availableIconThemes; + } onValueChanged: (value) => { Prefs.setIconTheme(value); if (value !== "System Default" && !Prefs.qt5ctAvailable && !Prefs.qt6ctAvailable) { diff --git a/Widgets/DankDropdown.qml b/Widgets/DankDropdown.qml index 03d9ed22..d14c901c 100644 --- a/Widgets/DankDropdown.qml +++ b/Widgets/DankDropdown.qml @@ -259,6 +259,8 @@ Rectangle { anchors.margins: 1 placeholderText: "Search..." text: dropdownMenu.searchQuery + topPadding: Theme.spacingS + bottomPadding: Theme.spacingS onTextChanged: { dropdownMenu.searchQuery = text dropdownMenu.updateFilteredOptions()