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.bottomMargin: 5
width: 13
height: 7
fillMode: Image.PreserveAspectFit
ColorOverlay {
anchors.fill: parent

View File

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

View File

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