fix: remove svg hack
This commit is contained in:
parent
38e1e84912
commit
9749fe4938
|
@ -223,6 +223,7 @@ ModalPopup {
|
|||
anchors.bottom: chatSettings.bottom
|
||||
anchors.bottomMargin: 5
|
||||
width: 13
|
||||
height: 7
|
||||
fillMode: Image.PreserveAspectFit
|
||||
ColorOverlay {
|
||||
anchors.fill: parent
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue