diff options
Diffstat (limited to 'gui/qml/BackgroundImage.qml')
-rw-r--r-- | gui/qml/BackgroundImage.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gui/qml/BackgroundImage.qml b/gui/qml/BackgroundImage.qml index 86b8cba..3071bf4 100644 --- a/gui/qml/BackgroundImage.qml +++ b/gui/qml/BackgroundImage.qml @@ -6,10 +6,19 @@ Rectangle { anchors.fill: parent; anchors.topMargin: 40; + property var backgroundSrc + property var backgroundVisible + Image { - source: "qrc:/assets/img/bird.jpg"; + source: parent.backgroundSrc; + visible: parent.backgroundVisible; fillMode: Image.PreserveAspectCrop; anchors.fill: parent; opacity: 0.8; } + + Component.onCompleted: { + /* default for riseup, needs customizing */ + backgroundSrc = "qrc:/assets/img/bird.jpg"; + } } |