This commit is contained in:
2026-03-12 00:35:20 +01:00
parent aab409ecc3
commit e56e607110
2 changed files with 6 additions and 6 deletions
@@ -22,11 +22,12 @@ RowLayout {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
onClicked: BackgroundService.toggleChooser() onClicked: BackgroundService.openChooser()
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
} }
Rectangle { Rectangle {
visible: WallpaperCycle.enabled
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left anchors.left: parent.left
width: Style.marginS width: Style.marginS
@@ -70,7 +71,7 @@ RowLayout {
baseSize: Style.baseWidgetSize * 0.8 baseSize: Style.baseWidgetSize * 0.8
iconName: WallpaperCycle.enabled ? "player-pause" : "player-play" iconName: WallpaperCycle.enabled ? "player-pause" : "player-play"
colorFg: WallpaperCycle.enabled ? Colors.mGreen : Colors.mRed colorFg: WallpaperCycle.enabled ? Colors.mGreen : Colors.mRed
alwaysHover: !WallpaperCycle.enabled alwaysHover: WallpaperCycle.enabled
onClicked: WallpaperCycle.playPause() onClicked: WallpaperCycle.playPause()
} }
@@ -62,11 +62,10 @@ Singleton {
}); });
} }
function toggleChooser() { function openChooser() {
if (wallreelProcess.running) if (!wallreelProcess.running)
wallreelProcess.signal(2);
else
wallreelProcess.running = true; wallreelProcess.running = true;
} }
Component.onCompleted: { Component.onCompleted: {