summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-03-25 07:58:53 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2022-03-29 06:55:17 +0100
commit344cc49f3a7ea64376eb085e1203029a3fa4ba6f (patch)
treef9556bae886df97fdf6090db2237e431c756067a /examples
parent70799256c65fe13b82d5198ebf6d79983a4b1144 (diff)
CustomDialogs: Make custom input fields readable in dark mode
Also set hidden characters for custom password field. Pick-to: 6.3 6.2 5.15 Change-Id: I8512a6a4215035e21a66aa5564aeb3ba886a900b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples')
-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 {