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:
@@ -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) {
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user