summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2018-11-08 11:47:45 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2018-11-08 13:04:17 +0000
commit977641fc7a91e5f440a1361511dd3f6361e0e106 (patch)
treea8240ea204018378529d1ed94c8906b6b676e637
parent65a46c51f8b0529008c0bb86e698738c8ca96df3 (diff)
Fix language filter textfiled
Place holder text should be white, and remove unncessary row layout that caused layout problems when virtual keyboard was shown. Change-Id: I94c38de9fa04d1a60dc36bc79123ed3dc7244d7d Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
-rw-r--r--src/settingsui/locale/RegionSelect.qml37
1 files changed, 16 insertions, 21 deletions
diff --git a/src/settingsui/locale/RegionSelect.qml b/src/settingsui/locale/RegionSelect.qml
index fbde92a..cfa5e15 100644
--- a/src/settingsui/locale/RegionSelect.qml
+++ b/src/settingsui/locale/RegionSelect.qml
@@ -105,27 +105,22 @@ Item {
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.topMargin: parent.height * 0.025
- RowLayout {
- spacing: 10
- Layout.fillHeight: false
- Layout.preferredHeight: root.height * 0.075
- TextField {
- id: country
- Layout.fillHeight: true
- Layout.preferredWidth: root.width * 0.5
- font.pixelSize: pluginMain.valueFontSize
- color: "white"
- text: ""
- placeholderText: "Search..."
- font.family: appFont
- font.styleName: "Light"
- onTextChanged: LocaleFilter.filter = country.text
- Layout.alignment: Qt.AlignVCenter
- background: Rectangle {
- color: "transparent"
- border.color: viewSettings.borderColor
- border.width: 2
- }
+ TextField {
+ id: country
+ Layout.preferredWidth: root.width * 0.5
+ font.pixelSize: pluginMain.valueFontSize
+ color: "white"
+ text: ""
+ placeholderText: "Search..."
+ placeholderTextColor: "white"
+ font.family: appFont
+ font.styleName: "Light"
+ onTextChanged: LocaleFilter.filter = country.text
+ Layout.alignment: Qt.AlignVCenter
+ background: Rectangle {
+ color: "transparent"
+ border.color: viewSettings.borderColor
+ border.width: 2
}
}