forked from Shinonome/dots-hyprland
taskbar: window previews
This commit is contained in:
@@ -3,15 +3,23 @@ import QtQuick.Layouts
|
||||
import qs.services
|
||||
import qs.modules.common
|
||||
import qs.modules.waffle.looks
|
||||
import Quickshell
|
||||
|
||||
AppButton {
|
||||
id: root
|
||||
|
||||
required property var toplevel
|
||||
readonly property bool isSeparator: toplevel.appId === "SEPARATOR"
|
||||
readonly property var desktopEntry: DesktopEntries.heuristicLookup(toplevel.appId)
|
||||
required property var appEntry
|
||||
readonly property bool isSeparator: appEntry.appId === "SEPARATOR"
|
||||
readonly property var desktopEntry: DesktopEntries.heuristicLookup(appEntry.appId)
|
||||
|
||||
Layout.fillHeight: true
|
||||
signal hoverPreviewRequested()
|
||||
|
||||
iconName: toplevel.appId
|
||||
iconName: AppSearch.guessIcon(appEntry.appId)
|
||||
Timer {
|
||||
running: root.hovered
|
||||
interval: 250
|
||||
onTriggered: {
|
||||
root.hoverPreviewRequested()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user