qs: update

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