diff --git a/Modules/Panels/Launcher/ClipboardPreview.qml b/Modules/Panels/Launcher/ClipboardPreview.qml index 81c23f11..9cafefd7 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 588f5c60..f93ea5a3 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) }