mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
feat: (Launcher/Spotlight): Updated w/New Settings & QOL features
- New Spotlight toggle to show/hide chips, off by default - Updated blur effects on all launcher inputs and footers - Fixed previous queries resurfacing - Upated Spotlight keyboard navigation - Added functionality to show and shortcut to keybinds from the Launcher tab
This commit is contained in:
@@ -16,6 +16,7 @@ Item {
|
||||
property var parentModal: null
|
||||
property string selectedCategory: ""
|
||||
property string searchQuery: ""
|
||||
property string requestedSearchQuery: ""
|
||||
property string expandedKey: ""
|
||||
property bool showingNewBind: false
|
||||
|
||||
@@ -206,13 +207,34 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: _ensureCurrentProvider()
|
||||
function _applyRequestedSearch() {
|
||||
if (!requestedSearchQuery)
|
||||
return;
|
||||
const query = requestedSearchQuery;
|
||||
selectedCategory = "";
|
||||
searchField.text = query;
|
||||
searchQuery = query;
|
||||
_updateFiltered();
|
||||
if (parentModal?.keybindSearchQuery === query)
|
||||
parentModal.keybindSearchQuery = "";
|
||||
Qt.callLater(scrollToTop);
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
_ensureCurrentProvider();
|
||||
Qt.callLater(_applyRequestedSearch);
|
||||
}
|
||||
|
||||
onRequestedSearchQueryChanged: Qt.callLater(_applyRequestedSearch)
|
||||
|
||||
onVisibleChanged: {
|
||||
if (!visible)
|
||||
return;
|
||||
Qt.callLater(scrollToTop);
|
||||
_ensureCurrentProvider();
|
||||
Qt.callLater(() => {
|
||||
_applyRequestedSearch();
|
||||
scrollToTop();
|
||||
});
|
||||
}
|
||||
|
||||
DankFlickable {
|
||||
|
||||
Reference in New Issue
Block a user