Avoid bad contrast in password dialog of Quick GUI with dark themes

This commit is contained in:
Martchus 2020-03-29 00:03:18 +01:00
parent b98483ca34
commit 9ff25a27b7
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,8 @@ BasicDialog {
Layout.preferredWidth: passwordDialog.availableWidth
echoMode: showCharactersCheckBox.checked ? TextInput.Normal : TextInput.Password
placeholderText: qsTr("enter password here, leave empty for no encryption")
color: "#101010"
placeholderTextColor: "#505050"
background: Rectangle {
border.color: "#5d5e6d"
}
@ -55,6 +57,8 @@ BasicDialog {
&& !showCharactersCheckBox.checked
echoMode: TextInput.Password
placeholderText: qsTr("repeat password")
color: "#101010"
placeholderTextColor: "#505050"
background: Rectangle {
border.color: passwordDialog.canAccept ? "#089900" : "#ff0000"
}