mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
Compare commits
2 Commits
734456785f
...
ce40c691e9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce40c691e9 | ||
|
|
5b0c38b0ed |
@@ -48,7 +48,6 @@ Scope {
|
||||
isClosing = true;
|
||||
return;
|
||||
}
|
||||
closeOverviewAfterAnim = false;
|
||||
searchActive = false;
|
||||
searchActiveScreen = "";
|
||||
isClosing = false;
|
||||
@@ -175,7 +174,6 @@ Scope {
|
||||
if (!spotlightContent?.searchField)
|
||||
return;
|
||||
const trimmedText = event.text.trim();
|
||||
spotlightContainer.waitingForResults = true;
|
||||
spotlightContent.searchField.text = trimmedText;
|
||||
if (spotlightContent.appLauncher) {
|
||||
spotlightContent.appLauncher.searchQuery = trimmedText;
|
||||
@@ -194,18 +192,10 @@ Scope {
|
||||
height: Theme.px(600, overlayWindow.dpr)
|
||||
|
||||
readonly property bool animatingOut: niriOverviewScope.isClosing && overlayWindow.isSpotlightScreen
|
||||
property bool waitingForResults: false
|
||||
|
||||
Connections {
|
||||
target: spotlightContent.appLauncher?.model ?? null
|
||||
function onCountChanged() {
|
||||
spotlightContainer.waitingForResults = false;
|
||||
}
|
||||
}
|
||||
|
||||
scale: (overlayWindow.shouldShowSpotlight && !waitingForResults) ? 1.0 : 0.96
|
||||
opacity: (overlayWindow.shouldShowSpotlight && !waitingForResults) ? 1 : 0
|
||||
visible: (overlayWindow.shouldShowSpotlight && !waitingForResults) || animatingOut
|
||||
scale: overlayWindow.shouldShowSpotlight ? 1.0 : 0.96
|
||||
opacity: overlayWindow.shouldShowSpotlight ? 1 : 0
|
||||
visible: overlayWindow.shouldShowSpotlight || animatingOut
|
||||
enabled: overlayWindow.shouldShowSpotlight
|
||||
|
||||
layer.enabled: true
|
||||
@@ -249,6 +239,19 @@ Scope {
|
||||
property var fakeParentModal: QtObject {
|
||||
property bool spotlightOpen: spotlightContainer.visible
|
||||
function hide() {
|
||||
if (spotlightContent.searchField.text.length > 0) {
|
||||
niriOverviewScope.hideSpotlight();
|
||||
return;
|
||||
}
|
||||
NiriService.toggleOverview();
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: spotlightContent.searchField
|
||||
function onTextChanged() {
|
||||
if (spotlightContent.searchField.text.length > 0 || !niriOverviewScope.searchActive)
|
||||
return;
|
||||
niriOverviewScope.hideSpotlight();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user