summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-03 17:57:25 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-03 17:57:25 -0800
commitb0063e5d1a6004e4459a872ae166065e52e460d6 (patch)
tree530f0104d41c63c9d7f34ac09384ec3636830cec /qt-mobile
parent2fc99092fb71ee58e1009b9e402e7af38afd6653 (diff)
downloadsubsurface-b0063e5d1a6004e4459a872ae166065e52e460d6.tar.gz
QML-UI: use our styled elements
This gets us consistent look and feel as otherwise the labels aren't styled the same as for the rest of the application. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/CloudCredentials.qml34
-rw-r--r--qt-mobile/qml/Preferences.qml4
2 files changed, 22 insertions, 16 deletions
diff --git a/qt-mobile/qml/CloudCredentials.qml b/qt-mobile/qml/CloudCredentials.qml
index bada5c04d..fafa26091 100644
--- a/qt-mobile/qml/CloudCredentials.qml
+++ b/qt-mobile/qml/CloudCredentials.qml
@@ -24,7 +24,7 @@ Item {
Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
}
- Label {
+ MobileComponents.Label {
text: "Email"
}
@@ -34,7 +34,7 @@ Item {
Layout.fillWidth: true
}
- Label {
+ MobileComponents.Label {
text: "Password"
}
@@ -44,22 +44,28 @@ Item {
echoMode: TextInput.Password
Layout.fillWidth: true
}
+ GridLayout {
+ columns: 2
- CheckBox {
- text: "Show password"
- checked: false
- id: showPassword
- onCheckedChanged: {
- password.echoMode = checked ? TextInput.Normal : TextInput.Password
+ CheckBox {
+ checked: false
+ id: showPassword
+ onCheckedChanged: {
+ password.echoMode = checked ? TextInput.Normal : TextInput.Password
+ }
+ }
+ MobileComponents.Label {
+ text: "Show password"
}
- }
- CheckBox {
- text: "Remember"
- checked: manager.saveCloudPassword
- id: savePassword
+ CheckBox {
+ checked: manager.saveCloudPassword
+ id: savePassword
+ }
+ MobileComponents.Label {
+ text: "Remember"
+ }
}
-
Item { width: MobileComponents.Units.gridUnit; height: width }
Item {
height: saveButton.height
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml
index de70d17b0..df06c42e7 100644
--- a/qt-mobile/qml/Preferences.qml
+++ b/qt-mobile/qml/Preferences.qml
@@ -29,7 +29,7 @@ Item {
Layout.columnSpan: 2
}
- Label {
+ MobileComponents.Label {
text: "Distance threshold (meters)"
Layout.alignment: Qt.AlignRight
}
@@ -40,7 +40,7 @@ Item {
Layout.fillWidth: true
}
- Label {
+ MobileComponents.Label {
text: "Time threshold (minutes)"
Layout.alignment: Qt.AlignRight
}