From 5d7905b566a2ac9d83c21448a864e7731fd22752 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 17 Jun 2025 11:38:49 +0200 Subject: [PATCH] welcome: choose wallpaper file button --- .config/quickshell/welcome.qml | 60 +++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/.config/quickshell/welcome.qml b/.config/quickshell/welcome.qml index 27a68f608..55cfdef99 100644 --- a/.config/quickshell/welcome.qml +++ b/.config/quickshell/welcome.qml @@ -306,7 +306,7 @@ ApplicationWindow { spacing: 20 Section { - title: "Customize" + title: "Style & wallpaper" ButtonGroup { Layout.fillWidth: true @@ -318,16 +318,58 @@ ApplicationWindow { } } - ButtonWithIcon { - id: rndWallBtn + RowLayout { Layout.alignment: Qt.AlignHCenter - buttonRadius: Appearance.rounding.small - iconText: "ifl" - mainText: konachanWallProc.running ? "Be patient..." : "Random SFW Konachan wallpaper" - onClicked: { - console.log(konachanWallProc.command.join(" ")) - konachanWallProc.running = true; + ButtonWithIcon { + id: rndWallBtn + Layout.alignment: Qt.AlignHCenter + buttonRadius: Appearance.rounding.small + iconText: "wallpaper" + mainText: konachanWallProc.running ? "Be patient..." : "Random: Konachan" + onClicked: { + console.log(konachanWallProc.command.join(" ")) + konachanWallProc.running = true; + } } + ButtonWithIcon { + iconText: "wallpaper" + onClicked: { + Hyprland.dispatch(`exec ${Directories.wallpaperSwitchScriptPath}`) + } + mainContentComponent: Component { + RowLayout { + spacing: 10 + StyledText { + font.pixelSize: Appearance.font.pixelSize.small + text: "Choose file" + color: Appearance.colors.colOnSecondaryContainer + } + RowLayout { + spacing: 3 + KeyboardKey { + key: "Ctrl" + } + KeyboardKey { + key: "󰖳" + } + StyledText { + Layout.alignment: Qt.AlignVCenter + text: "+" + } + KeyboardKey { + key: "T" + } + } + } + } + } + } + + StyledText { + Layout.alignment: Qt.AlignHCenter + text: "Change any time later with /dark, /light, /img in the launcher" + font.pixelSize: Appearance.font.pixelSize.smaller + color: Appearance.colors.colSubtext } }