mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 05:13:23 +00:00
mobile-widgets/qml: settings Control.TextEdit -> TemplateTextEdit
Replace Control.TextEdit with TemplateTextEdit, in order to use common font/color scheme. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ee1d5ba94e
commit
96ec585179
1 changed files with 2 additions and 6 deletions
|
@ -305,12 +305,10 @@ Kirigami.ScrollablePage {
|
||||||
Layout.preferredWidth: gridWidth * 0.75
|
Layout.preferredWidth: gridWidth * 0.75
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.TextField {
|
TemplateTextField {
|
||||||
id: distanceThreshold
|
id: distanceThreshold
|
||||||
text: PrefLocationService.distance_threshold
|
text: PrefLocationService.distance_threshold
|
||||||
font.pointSize: subsurfaceTheme.regularPointSize
|
|
||||||
Layout.preferredWidth: gridWidth * 0.25
|
Layout.preferredWidth: gridWidth * 0.25
|
||||||
color: subsurfaceTheme.textColor
|
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
PrefLocationService.distance_threshold = distanceThreshold.text
|
PrefLocationService.distance_threshold = distanceThreshold.text
|
||||||
}
|
}
|
||||||
|
@ -321,12 +319,10 @@ Kirigami.ScrollablePage {
|
||||||
Layout.preferredWidth: gridWidth * 0.75
|
Layout.preferredWidth: gridWidth * 0.75
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.TextField {
|
TemplateTextField {
|
||||||
id: timeThreshold
|
id: timeThreshold
|
||||||
text: PrefLocationService.time_threshold / 60
|
text: PrefLocationService.time_threshold / 60
|
||||||
font.pointSize: subsurfaceTheme.regularPointSize
|
|
||||||
Layout.preferredWidth: gridWidth * 0.25
|
Layout.preferredWidth: gridWidth * 0.25
|
||||||
color: subsurfaceTheme.textColor
|
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
PrefLocationService.time_threshold = timeThreshold.text * 60
|
PrefLocationService.time_threshold = timeThreshold.text * 60
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue