fix: remove svg hack

This commit is contained in:
Richard Ramos 2021-03-03 09:52:51 -04:00 committed by Iuri Matias
parent 38e1e84912
commit 9749fe4938
3 changed files with 6 additions and 9 deletions

View File

@ -223,6 +223,7 @@ ModalPopup {
anchors.bottom: chatSettings.bottom anchors.bottom: chatSettings.bottom
anchors.bottomMargin: 5 anchors.bottomMargin: 5
width: 13 width: 13
height: 7
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
ColorOverlay { ColorOverlay {
anchors.fill: parent anchors.fill: parent

View File

@ -1,13 +1,6 @@
import QtQuick 2.13 import QtQuick 2.13
// Source: https://forum.qt.io/topic/52161/properly-scaling-svg-images/6
Image { Image {
sourceSize: Qt.size(hiddenImg.sourceSize.width * 2, hiddenImg.sourceSize.height * 2) sourceSize.width: width
Image { sourceSize.height: height
id: hiddenImg
source: parent.source
width: 0
height: 0
}
} }

View File

@ -90,6 +90,7 @@ Item {
SVGImage { SVGImage {
id: fromArrow id: fromArrow
width: 13 width: 13
height: 7
visible: root.isFromEditable visible: root.isFromEditable
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
@ -441,6 +442,7 @@ Item {
SVGImage { SVGImage {
id: gasArrow id: gasArrow
width: 13 width: 13
height: 7
visible: root.isGasEditable visible: root.isGasEditable
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
@ -489,6 +491,7 @@ Item {
} }
SVGImage { SVGImage {
width: 13 width: 13
height: 7
visible: true visible: true
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit