[Pkg-privacy-commits] [tails-installer] 177/210: Fix jagged image scaling
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.
commit 2b8e091aa48ae16df71eed188f0e957ecdc14a0f
Author: Martin Briza <mbriza at redhat.com>
Date: Fri Oct 16 14:29:21 2015 +0200
Fix jagged image scaling
---
liveusb/components/DelegateImage.qml | 12 +++++++-----
liveusb/components/DownloadDialog.qml | 4 +++-
liveusb/components/ImageDetails.qml | 3 ++-
3 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/liveusb/components/DelegateImage.qml b/liveusb/components/DelegateImage.qml
index 91e55c0..d8fcc95 100644
--- a/liveusb/components/DelegateImage.qml
+++ b/liveusb/components/DelegateImage.qml
@@ -10,7 +10,7 @@ Item {
y: index == 0 ? $(1) : 0
radius: $(4)
color: "transparent"
- IndicatedImage {
+ Item {
id: iconRect
anchors {
top: parent.top
@@ -21,10 +21,12 @@ Item {
bottomMargin: anchors.topMargin
}
width: height
- smooth: true
- fillMode: Image.PreserveAspectFit
-
- source: release.logo
+ IndicatedImage {
+ fillMode: Image.PreserveAspectFit
+ source: release.logo
+ sourceSize.height: parent.height
+ sourceSize.width: parent.width
+ }
}
Item {
id: textRect
diff --git a/liveusb/components/DownloadDialog.qml b/liveusb/components/DownloadDialog.qml
index 1a89bad..ebcc6d1 100644
--- a/liveusb/components/DownloadDialog.qml
+++ b/liveusb/components/DownloadDialog.qml
@@ -178,10 +178,12 @@ Dialog {
RowLayout {
anchors.horizontalCenter: parent.horizontalCenter
spacing: $(32)
- IndicatedImage {
+ Image {
source: liveUSBData.currentImage.logo
Layout.preferredWidth: $(64)
Layout.preferredHeight: $(64)
+ sourceSize.width: $(64)
+ sourceSize.height: $(64)
fillMode: Image.PreserveAspectFit
}
Arrow {
diff --git a/liveusb/components/ImageDetails.qml b/liveusb/components/ImageDetails.qml
index cd441c3..20016d4 100644
--- a/liveusb/components/ImageDetails.qml
+++ b/liveusb/components/ImageDetails.qml
@@ -83,9 +83,10 @@ Item {
Layout.preferredWidth: $(64)
Layout.preferredHeight: $(64)
IndicatedImage {
- anchors.fill: parent
source: liveUSBData.currentImage.logo
fillMode: Image.PreserveAspectFit
+ sourceSize.width: parent.width
+ sourceSize.height: parent.height
}
}
ColumnLayout {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list