diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-03-25 07:58:53 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-29 12:52:30 +0000 |
commit | 32eb3e33d0ad12d64296604647e4cfcc20cd2db2 (patch) | |
tree | e869b92437e9e0022dd6bb71ebca131d116bd482 | |
parent | fec9a3cff7c97c6b8b00846c29aafdd881eeba02 (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>
-rw-r--r-- | examples/webenginequick/customdialogs/forms/AuthenticationForm.ui.qml | 15 | ||||
-rw-r--r-- | examples/webenginequick/customdialogs/forms/JavaScriptForm.ui.qml | 7 |
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 { |