summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-06-13 13:58:32 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-06-14 13:35:33 -0700
commit5ff08598ca252b5caf05d3ad83b31ef21929708c (patch)
tree7689362aeeb6aa646a9cff9f847c0a4e271f4063 /mobile-widgets
parent3a409c51ea2aaec5077e6ba4367390fbd286145b (diff)
downloadsubsurface-5ff08598ca252b5caf05d3ad83b31ef21929708c.tar.gz
mobile: show sync state in menu plate
This seems like the easiest way to show the state without disrupting the UI elsewhere. Directly below the email address used for cloud storage. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/main.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 92ee7e075..d12c0df41 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -229,6 +229,21 @@ Kirigami.ApplicationWindow {
font.weight: Font.Normal
}
}
+ RowLayout {
+ Layout.leftMargin: Kirigami.Units.smallSpacing
+ Layout.topMargin: 0
+ Kirigami.Heading {
+ Layout.fillWidth: true
+ Layout.topMargin: 0
+ visible: text.length > 0
+ level: 5
+ color: "white"
+ text: manager.syncState
+ wrapMode: Text.NoWrap
+ elide: Text.ElideRight
+ font.weight: Font.Normal
+ }
+ }
}
}