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

Fix cursor style on inputs

This commit is contained in:
bbedward
2025-07-14 21:53:19 -04:00
parent e0bf5df74b
commit f388840443
3 changed files with 23 additions and 46 deletions

View File

@@ -47,18 +47,6 @@ PanelWindow {
onTriggered: updateFilteredModel()
}
Timer {
id: periodicRescanTimer
interval: 60000
repeat: true
running: launcher.isVisible
onTriggered: {
if (DesktopEntries.rescan) {
DesktopEntries.rescan()
}
}
}
ListModel { id: filteredModel }
// Background dim with click to close
@@ -478,6 +466,13 @@ PanelWindow {
selectByMouse: true
activeFocusOnTab: true
MouseArea {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.NoButton
}
// Placeholder text
Text {
anchors.verticalCenter: parent.verticalCenter
@@ -1034,12 +1029,6 @@ PanelWindow {
}
function show() {
// Trigger manual rescan when opening
console.log("AppLauncher: Triggering manual rescan on show")
if (DesktopEntries.rescan) {
DesktopEntries.rescan()
}
launcher.isVisible = true
recentApps = Prefs.getRecentApps() // Refresh recent apps
searchDebounceTimer.stop() // Stop any pending search

View File

@@ -325,6 +325,14 @@ PanelWindow {
font.pixelSize: activeTheme.fontSizeLarge
color: activeTheme.surfaceText
verticalAlignment: TextInput.AlignVCenter
selectByMouse: true
MouseArea {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.NoButton
}
onTextChanged: updateFilteredModel()

View File

@@ -32,19 +32,6 @@ PanelWindow {
onTriggered: updateFilteredApps()
}
Timer {
id: periodicRescanTimer
interval: 60000
repeat: true
running: spotlightOpen
onTriggered: {
console.log("SpotlightLauncher: Periodic rescan triggered")
if (DesktopEntries.rescan) {
DesktopEntries.rescan()
}
}
}
anchors {
top: true
left: true
@@ -69,12 +56,6 @@ PanelWindow {
function show() {
console.log("SpotlightLauncher: show() called")
// Trigger manual rescan when opening
console.log("SpotlightLauncher: Triggering manual rescan on show")
if (DesktopEntries.rescan) {
DesktopEntries.rescan()
}
spotlightOpen = true
console.log("SpotlightLauncher: spotlightOpen set to", spotlightOpen)
searchDebounceTimer.stop() // Stop any pending search
@@ -468,6 +449,13 @@ PanelWindow {
verticalAlignment: Text.AlignVCenter
focus: spotlightOpen
selectByMouse: true
MouseArea {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.NoButton
}
onTextChanged: {
searchDebounceTimer.restart()
}
@@ -830,14 +818,6 @@ PanelWindow {
spotlightLauncher.toggle()
return "SPOTLIGHT_TOGGLE_SUCCESS"
}
function rescan() {
console.log("SpotlightLauncher: IPC rescan() called")
if (DesktopEntries.rescan) {
DesktopEntries.rescan()
console.log("SpotlightLauncher: Triggered DesktopEntries rescan")
}
return "SPOTLIGHT_RESCAN_SUCCESS"
}
}
Component.onCompleted: {