Add background image variable to theme

This commit is contained in:
miruka
2019-07-24 14:58:16 -04:00
parent ec27ecf498
commit 921a0586cf
3 changed files with 14 additions and 7 deletions

View File

@@ -35,10 +35,10 @@ HRectangle {
accounts.count > 0 || py.loadingAccounts
HImage {
visible: false
visible: Boolean(Qt.resolvedUrl(source))
id: mainUIBackground
fillMode: Image.PreserveAspectCrop
source: "../images/background.jpg"
source: theme.ui.image
sourceSize.width: Screen.width
sourceSize.height: Screen.height
anchors.fill: parent