summaryrefslogtreecommitdiff
path: root/gui/qml/BackgroundImage.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-07-07 20:57:29 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-07-07 20:57:29 +0200
commitdf9d9f990ae97904f01af3b710042713d31da7f6 (patch)
tree6f38cce9f38a088b99cdaaf7d69de0ef2db4c54d /gui/qml/BackgroundImage.qml
parent39eb4a176ef2fe52247db4ca551fc0f945ffa2ae (diff)
[ux] customize background for calyxvpn
Diffstat (limited to 'gui/qml/BackgroundImage.qml')
-rw-r--r--gui/qml/BackgroundImage.qml11
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";
+ }
}