Paste P652

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Dec 27 2020, 6:50 PM.
commit fcfc78cb15de45006982b7a176782bf7a2cdc7e9
Author: David Edmundson <kde@davidedmundson.co.uk>
Date: Sun Dec 27 18:49:41 2020 +0000
No binding loop, lazy load
diff --git a/src/package/contents/ui/DetailsDialog.qml b/src/package/contents/ui/DetailsDialog.qml
index 395e145..bc79dcc 100644
--- a/src/package/contents/ui/DetailsDialog.qml
+++ b/src/package/contents/ui/DetailsDialog.qml
@@ -39,7 +39,7 @@ Kirigami.OverlaySheet {
text: i18nc("@title:window, %1 is the theme name, %2 the version", "%1 (%2)", themeName, version)
}
contentItem: ColumnLayout {
- implicitWidth: 0.75 * root.width
+ Layout.preferredWidth: 0.75 * root.width
Image {
id: previewImage
readonly property bool available: status === Image.Ready || status === Image.Loading
@@ -47,7 +47,6 @@ Kirigami.OverlaySheet {
Layout.preferredHeight: available ? implicitHeight : Math.round(width * Screen.height/Screen.width)
source: previewPath
sourceSize.width: width * Screen.devicePixelRatio
- sourceSize.height: height * Screen.devicePixelRatio
fillMode: Image.PreserveAspectFit
smooth: true
DropShadow {
davidedmundson edited the content of this paste. (Show Details)Dec 27 2020, 6:50 PM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.