From e2d02afc9abb2d86ead531b4c25af76297d1b35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Atoch?= Date: Sat, 2 Aug 2025 22:34:21 -0400 Subject: [PATCH] Bring back the .min(). May save a few bytes with extremely small source images. Not sure why one would want to display tiny wallpapers, but you never know. --- Widgets/Sidebar/Panel/WallpaperPanel.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Widgets/Sidebar/Panel/WallpaperPanel.qml b/Widgets/Sidebar/Panel/WallpaperPanel.qml index ec7a0b2..dd6219a 100644 --- a/Widgets/Sidebar/Panel/WallpaperPanel.qml +++ b/Widgets/Sidebar/Panel/WallpaperPanel.qml @@ -140,8 +140,8 @@ PanelWindow { smooth: true mipmap: true // Limit memory usage - sourceSize.width: 480 - sourceSize.height: 270 + sourceSize.width: Math.min(width, 480) + sourceSize.height: Math.min(height, 270) } MouseArea { anchors.fill: parent