Wallpaper refining (#81)

* Wallpaper refining

- Swww: allow all images formats supported by Swww but only show the one
we can render in the panel
- Fix: timer should be restarted when selecting a wallpaper
- Fix: avoid recomputing selected thumbnail by altering the border width
- Removed LazyLoader as it was not helping

* Wallpapers changes

- revert: maintaining a single list all wallpapers, support only basic
images format.
- settings: reordered wallpapers settings and made the Swww settings
conditionals to activating the useSWWW toggle

* Fix broken avatar display in Panel, Settings and LockScreen

---------

Co-authored-by: Sébastien Atoch <sebastien@atracktiv.com>
This commit is contained in:
Quadbyte 2025-08-03 15:37:13 -04:00 committed by GitHub
parent e71fecb521
commit de94d94265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 228 additions and 143 deletions

View file

@ -59,8 +59,8 @@ PanelWithOverlay {
if (sidebarPopupRect.settingsModal && sidebarPopupRect.settingsModal.visible) {
sidebarPopupRect.settingsModal.visible = false;
}
if (wallpaperPanelLoader && wallpaperPanelLoader.active) {
wallpaperPanelLoader.active = false;
if (wallpaperPanel && wallpaperPanel.visible) {
wallpaperPanel.visible = false;
}
if (sidebarPopupRect.wifiPanelModal && sidebarPopupRect.wifiPanelModal.visible) {
sidebarPopupRect.wifiPanelModal.visible = false;
@ -312,7 +312,9 @@ PanelWithOverlay {
onSettingsRequested: {
settingsModal.visible = true;
}
onWallpaperRequested: wallpaperPanelLoader.active = true;
onWallpaperRequested: {
wallpaperPanel.visible = true;
}
}
}
Keys.onEscapePressed: sidebarPopupRect.hidePopup()
@ -399,18 +401,12 @@ PanelWithOverlay {
}
}
LazyLoader {
id: wallpaperPanelLoader
loading: false
WallpaperPanel {
// Need to keep this visible so it shows once loaded
visible: true
Component.onCompleted: {
if (parent) {
anchors.top = parent.top;
anchors.right = parent.right;
}
WallpaperPanel {
id: wallpaperPanel
Component.onCompleted: {
if (parent) {
anchors.top = parent.top;
anchors.right = parent.right;
}
}
}