1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

make icon theme searchable

This commit is contained in:
bbedward
2025-07-28 11:47:55 -04:00
parent d4e5e60e7b
commit e17bd982fe
2 changed files with 10 additions and 1 deletions

View File

@@ -87,7 +87,14 @@ ScrollView {
text: "Icon Theme" text: "Icon Theme"
description: "Select icon theme" description: "Select icon theme"
currentValue: Prefs.iconTheme 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) => { onValueChanged: (value) => {
Prefs.setIconTheme(value); Prefs.setIconTheme(value);
if (value !== "System Default" && !Prefs.qt5ctAvailable && !Prefs.qt6ctAvailable) { if (value !== "System Default" && !Prefs.qt5ctAvailable && !Prefs.qt6ctAvailable) {

View File

@@ -259,6 +259,8 @@ Rectangle {
anchors.margins: 1 anchors.margins: 1
placeholderText: "Search..." placeholderText: "Search..."
text: dropdownMenu.searchQuery text: dropdownMenu.searchQuery
topPadding: Theme.spacingS
bottomPadding: Theme.spacingS
onTextChanged: { onTextChanged: {
dropdownMenu.searchQuery = text dropdownMenu.searchQuery = text
dropdownMenu.updateFilteredOptions() dropdownMenu.updateFilteredOptions()