works
This commit is contained in:
@@ -16,7 +16,7 @@ Flickable {
|
||||
|
||||
id: root
|
||||
|
||||
property string dir: "/home/nathan/Pictures/Wallpaper/"
|
||||
property string dir: Settings.wallpaperDir
|
||||
|
||||
implicitHeight: lay.height
|
||||
implicitWidth: 750
|
||||
@@ -26,8 +26,6 @@ Flickable {
|
||||
|
||||
flickDeceleration: 5000
|
||||
|
||||
contentX: 100
|
||||
|
||||
WheelHandler {
|
||||
target: root
|
||||
//property: "contentX"
|
||||
@@ -64,7 +62,7 @@ Flickable {
|
||||
implicitWidth: 192 * 2; implicitHeight: 108 * 2
|
||||
Image {
|
||||
width: 192 * 2; height: 108 * 2
|
||||
source: Qt.resolvedUrl(root.dir + rep.model[index])
|
||||
source: Qt.resolvedUrl(root.dir + "/" + rep.model[index])
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
sourceSize.width: 192 * 2
|
||||
sourceSize.height: 108 * 2
|
||||
@@ -72,7 +70,7 @@ Flickable {
|
||||
}
|
||||
|
||||
property Process sw: Process {
|
||||
command: ["setWallpaper", root.dir + rep.model[index]]
|
||||
command: ["aurora-set-wallpaper", root.dir + "/" + rep.model[index]]
|
||||
running: false
|
||||
onRunningChanged: {
|
||||
root.hyprcmds.forEach((c) => Hyprland.dispatch(c))
|
||||
|
||||
Reference in New Issue
Block a user