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

View File

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

View File

@@ -32,19 +32,6 @@ PanelWindow {
onTriggered: updateFilteredApps() onTriggered: updateFilteredApps()
} }
Timer {
id: periodicRescanTimer
interval: 60000
repeat: true
running: spotlightOpen
onTriggered: {
console.log("SpotlightLauncher: Periodic rescan triggered")
if (DesktopEntries.rescan) {
DesktopEntries.rescan()
}
}
}
anchors { anchors {
top: true top: true
left: true left: true
@@ -68,13 +55,7 @@ PanelWindow {
// ...existing code... // ...existing code...
function show() { function show() {
console.log("SpotlightLauncher: show() called") 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 spotlightOpen = true
console.log("SpotlightLauncher: spotlightOpen set to", spotlightOpen) console.log("SpotlightLauncher: spotlightOpen set to", spotlightOpen)
searchDebounceTimer.stop() // Stop any pending search searchDebounceTimer.stop() // Stop any pending search
@@ -468,6 +449,13 @@ PanelWindow {
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
focus: spotlightOpen focus: spotlightOpen
selectByMouse: true selectByMouse: true
MouseArea {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.NoButton
}
onTextChanged: { onTextChanged: {
searchDebounceTimer.restart() searchDebounceTimer.restart()
} }
@@ -830,14 +818,6 @@ PanelWindow {
spotlightLauncher.toggle() spotlightLauncher.toggle()
return "SPOTLIGHT_TOGGLE_SUCCESS" 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: { Component.onCompleted: {