mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 06:16:16 +00:00
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>
This commit is contained in:
parent
2fc99092fb
commit
b0063e5d1a
2 changed files with 23 additions and 17 deletions
|
@ -24,7 +24,7 @@ Item {
|
||||||
Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
MobileComponents.Label {
|
||||||
text: "Email"
|
text: "Email"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
MobileComponents.Label {
|
||||||
text: "Password"
|
text: "Password"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,22 +44,28 @@ Item {
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
GridLayout {
|
||||||
|
columns: 2
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
text: "Show password"
|
|
||||||
checked: false
|
checked: false
|
||||||
id: showPassword
|
id: showPassword
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
password.echoMode = checked ? TextInput.Normal : TextInput.Password
|
password.echoMode = checked ? TextInput.Normal : TextInput.Password
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MobileComponents.Label {
|
||||||
|
text: "Show password"
|
||||||
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
text: "Remember"
|
|
||||||
checked: manager.saveCloudPassword
|
checked: manager.saveCloudPassword
|
||||||
id: savePassword
|
id: savePassword
|
||||||
}
|
}
|
||||||
|
MobileComponents.Label {
|
||||||
|
text: "Remember"
|
||||||
|
}
|
||||||
|
}
|
||||||
Item { width: MobileComponents.Units.gridUnit; height: width }
|
Item { width: MobileComponents.Units.gridUnit; height: width }
|
||||||
Item {
|
Item {
|
||||||
height: saveButton.height
|
height: saveButton.height
|
||||||
|
|
|
@ -29,7 +29,7 @@ Item {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
MobileComponents.Label {
|
||||||
text: "Distance threshold (meters)"
|
text: "Distance threshold (meters)"
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
MobileComponents.Label {
|
||||||
text: "Time threshold (minutes)"
|
text: "Time threshold (minutes)"
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue