summaryrefslogtreecommitdiffstats
path: root/examples/webenginequick/customdialogs/forms
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-03-25 07:58:53 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-29 12:52:29 +0000
commit5bd7030ab3572a26cebc245a67fcdaddba95d1d4 (patch)
tree468914d5044985cccff1d52aadcc808d8dd89c52 /examples/webenginequick/customdialogs/forms
parent92b38480a608d5852f22b3d8d542b0db22fb3349 (diff)
CustomDialogs: Make custom input fields readable in dark mode
Also set hidden characters for custom password field. Change-Id: I8512a6a4215035e21a66aa5564aeb3ba886a900b Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 344cc49f3a7ea64376eb085e1203029a3fa4ba6f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/webenginequick/customdialogs/forms')
-rw-r--r--examples/webenginequick/customdialogs/forms/AuthenticationForm.ui.qml15
-rw-r--r--examples/webenginequick/customdialogs/forms/JavaScriptForm.ui.qml7
2 files changed, 22 insertions, 0 deletions
diff --git a/examples/webenginequick/customdialogs/forms/AuthenticationForm.ui.qml b/examples/webenginequick/customdialogs/forms/AuthenticationForm.ui.qml
index 4a1577a05..86ca4e465 100644
--- a/examples/webenginequick/customdialogs/forms/AuthenticationForm.ui.qml
+++ b/examples/webenginequick/customdialogs/forms/AuthenticationForm.ui.qml
@@ -120,6 +120,13 @@ Item {
height: 22
Layout.fillWidth: true
font.pointSize: 12
+ color: "black"
+
+ background: Rectangle {
+ color: "white"
+ border.color: "black"
+ border.width: 1
+ }
}
Text {
@@ -134,6 +141,14 @@ Item {
height: 26
Layout.fillWidth: true
font.pointSize: 12
+ color: "black"
+ echoMode: TextInput.Password
+
+ background: Rectangle {
+ color: "white"
+ border.color: "black"
+ border.width: 1
+ }
}
Item {
diff --git a/examples/webenginequick/customdialogs/forms/JavaScriptForm.ui.qml b/examples/webenginequick/customdialogs/forms/JavaScriptForm.ui.qml
index 777f3f6e2..250c0ad21 100644
--- a/examples/webenginequick/customdialogs/forms/JavaScriptForm.ui.qml
+++ b/examples/webenginequick/customdialogs/forms/JavaScriptForm.ui.qml
@@ -122,6 +122,13 @@ Item {
height: 22
Layout.fillWidth: true
font.pointSize: 12
+ color: "black"
+
+ background: Rectangle {
+ color: "white"
+ border.color: "black"
+ border.width: 1
+ }
}
Item {