feat: wallpaper-driven theming + native wallpaper picker
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ZYoSQwwYWhJHLX6VBCGnF
This commit is contained in:
1 parent
0537615b96
commit
ace2860e7a
22 files changed
+594
-285
No files matched your search
@@ -9,6 +9,7 @@ import "components/Shared"
|
||||
import "components/LogoutMenu"
|
||||
import "components/ClipboardManager"
|
||||
import "components/Notifications"
|
||||
import "components/WallpaperPicker"
|
||||
|
||||
ShellRoot {
|
||||
id: root
|
||||
@@ -17,6 +18,7 @@ ShellRoot {
|
||||
property bool commandPaletteOpen: false
|
||||
property bool logoutMenuOpen: false
|
||||
property bool clipboardManagerOpen: false
|
||||
property bool wallpaperPickerOpen: false
|
||||
|
||||
IpcHandler {
|
||||
target: "commandPalette"
|
||||
@@ -61,6 +63,28 @@ ShellRoot {
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "wallpaperSwitcher"
|
||||
function open() {
|
||||
wallpaperPickerOpen = !wallpaperPickerOpen;
|
||||
if (wallpaperPickerOpen) {
|
||||
commandPaletteOpen = false;
|
||||
logoutMenuOpen = false;
|
||||
clipboardManagerOpen = false;
|
||||
}
|
||||
}
|
||||
function random() {
|
||||
randomWallpaperProcess.running = false;
|
||||
randomWallpaperProcess.running = true;
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: randomWallpaperProcess
|
||||
command: ["nu", Quickshell.env("HOME") + "/.dotfiles/config/nushell/scripts/wallpaper-switch.nu", "--random"]
|
||||
running: false
|
||||
}
|
||||
|
||||
TrayTooltip {
|
||||
id: trayTooltip
|
||||
}
|
||||
@@ -93,4 +117,9 @@ ShellRoot {
|
||||
Notifications {
|
||||
id: notifications
|
||||
}
|
||||
|
||||
WallpaperPicker {
|
||||
id: wallpaperPicker
|
||||
rootState: root
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user