From 05c90909d2ed522050914b9419da8df5d7032eb6 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Wed, 26 Nov 2025 19:22:18 +0100 Subject: [PATCH] ClipboardPreview: fix ClipboardPreview --- Modules/Panels/Launcher/ClipboardPreview.qml | 2 +- Widgets/NImageRounded.qml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Panels/Launcher/ClipboardPreview.qml b/Modules/Panels/Launcher/ClipboardPreview.qml index 81c23f119..9cafefd76 100644 --- a/Modules/Panels/Launcher/ClipboardPreview.qml +++ b/Modules/Panels/Launcher/ClipboardPreview.qml @@ -102,7 +102,7 @@ Item { anchors.fill: parent imagePath: imageDataUrl visible: isImageContent && !loadingFullContent && imageDataUrl !== "" - imageRadius: Style.radiusS + radius: Style.radiusS imageFillMode: Image.PreserveAspectFit } diff --git a/Widgets/NImageRounded.qml b/Widgets/NImageRounded.qml index 588f5c609..f93ea5a3a 100644 --- a/Widgets/NImageRounded.qml +++ b/Widgets/NImageRounded.qml @@ -13,6 +13,7 @@ Item { property real fallbackIconSize: Style.fontSizeXXL property real borderWidth: 0 property color borderColor: Color.transparent + property int imageFillMode: Image.PreserveAspectCrop readonly property bool showFallback: (fallbackIcon !== undefined && fallbackIcon !== "") && (imagePath === undefined || imagePath === "") @@ -33,7 +34,7 @@ Item { smooth: true asynchronous: true antialiasing: true - fillMode: Image.PreserveAspectCrop + fillMode: root.imageFillMode onStatusChanged: root.statusChanged(status) }