summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-15 15:41:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-19 11:51:48 -0800
commit96ec5851795ff6180fb99d41e24b266f9ffead05 (patch)
treecef37e15e73f0f9d9508d6a31c97230969070ca4 /mobile-widgets
parentee1d5ba94e18b035298ea36c54f2bb35a3e67e0f (diff)
downloadsubsurface-96ec5851795ff6180fb99d41e24b266f9ffead05.tar.gz
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/Settings.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index 7565a45bf..b443c2633 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -305,12 +305,10 @@ Kirigami.ScrollablePage {
Layout.preferredWidth: gridWidth * 0.75
}
- Controls.TextField {
+ TemplateTextField {
id: distanceThreshold
text: PrefLocationService.distance_threshold
- font.pointSize: subsurfaceTheme.regularPointSize
Layout.preferredWidth: gridWidth * 0.25
- color: subsurfaceTheme.textColor
onEditingFinished: {
PrefLocationService.distance_threshold = distanceThreshold.text
}
@@ -321,12 +319,10 @@ Kirigami.ScrollablePage {
Layout.preferredWidth: gridWidth * 0.75
}
- Controls.TextField {
+ TemplateTextField {
id: timeThreshold
text: PrefLocationService.time_threshold / 60
- font.pointSize: subsurfaceTheme.regularPointSize
Layout.preferredWidth: gridWidth * 0.25
- color: subsurfaceTheme.textColor
onEditingFinished: {
PrefLocationService.time_threshold = timeThreshold.text * 60
}