From 32eb3e33d0ad12d64296604647e4cfcc20cd2db2 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Fri, 25 Mar 2022 07:58:53 +0100 Subject: CustomDialogs: Make custom input fields readable in dark mode Also set hidden characters for custom password field. Change-Id: I8512a6a4215035e21a66aa5564aeb3ba886a900b Reviewed-by: Michal Klocek (cherry picked from commit 344cc49f3a7ea64376eb085e1203029a3fa4ba6f) Reviewed-by: Qt Cherry-pick Bot --- .../customdialogs/forms/AuthenticationForm.ui.qml | 15 +++++++++++++++ .../customdialogs/forms/JavaScriptForm.ui.qml | 7 +++++++ 2 files changed, 22 insertions(+) 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 { -- cgit v1.2.3