diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-22 16:29:38 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-22 16:29:38 +1000 |
| commit | 32ff695d9e2993fcc904a58b3f5486b2285e8825 (patch) | |
| tree | c4e547a8f9f48e5c80a8dee6020a93a8d657b563 /modules | |
| parent | filedialog: add scrollbar (diff) | |
| download | caelestia-shell-32ff695d9e2993fcc904a58b3f5486b2285e8825.tar.gz caelestia-shell-32ff695d9e2993fcc904a58b3f5486b2285e8825.tar.bz2 caelestia-shell-32ff695d9e2993fcc904a58b3f5486b2285e8825.zip | |
filedialog: better icon filtering
Only thumbnail valid image types
Also move wallpaper extensions into separate singleton in utils
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/background/Wallpaper.qml | 2 | ||||
| -rw-r--r-- | modules/dashboard/Wrapper.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml index 57f5dc0..2ec4927 100644 --- a/modules/background/Wallpaper.qml +++ b/modules/background/Wallpaper.qml @@ -66,7 +66,7 @@ Item { title: qsTr("Select a wallpaper") filterLabel: qsTr("Image files") - filters: Wallpapers.extensions + filters: Images.validImageExtensions onAccepted: path => Wallpapers.setWallpaper(path) } diff --git a/modules/dashboard/Wrapper.qml b/modules/dashboard/Wrapper.qml index d3630a6..0336d59 100644 --- a/modules/dashboard/Wrapper.qml +++ b/modules/dashboard/Wrapper.qml @@ -17,7 +17,7 @@ Item { readonly property FileDialog facePicker: FileDialog { title: qsTr("Select a profile picture") filterLabel: qsTr("Image files") - filters: Wallpapers.extensions + filters: Images.validImageExtensions onAccepted: path => { Paths.copy(path, `${Paths.home}/.face`); Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "low", "-h", `STRING:image-path:${path}`, "Profile picture changed", `Profile picture changed to ${Paths.shortenHome(path)}`]); |