Fix UI image hidden behind gradient

This commit is contained in:
miruka 2020-03-19 00:13:38 -04:00
parent fe40d117b2
commit 9186386369

View File

@ -49,19 +49,9 @@ Item {
active: false active: false
} }
HImage {
id: mainUIBackground
visible: Boolean(Qt.resolvedUrl(source))
fillMode: Image.PreserveAspectCrop
source: theme.ui.image
sourceSize.width: Screen.width
sourceSize.height: Screen.height
anchors.fill: parent
asynchronous: false
}
LinearGradient { LinearGradient {
id: mainUIGradient id: mainUIGradient
visible: ! image.visible
anchors.fill: parent anchors.fill: parent
start: theme.ui.gradientStart start: theme.ui.gradientStart
end: theme.ui.gradientEnd end: theme.ui.gradientEnd
@ -72,6 +62,17 @@ Item {
} }
} }
HImage {
id: image
visible: Boolean(Qt.resolvedUrl(source))
fillMode: Image.PreserveAspectCrop
source: theme.ui.image
sourceSize.width: Screen.width
sourceSize.height: Screen.height
anchors.fill: parent
asynchronous: false
}
MainPane { MainPane {
id: mainPane id: mainPane
maximumSize: parent.width - theme.minimumSupportedWidth * 1.5 maximumSize: parent.width - theme.minimumSupportedWidth * 1.5