fix(edit): fix edit input text color in dark theme

This commit is contained in:
Jonathan Rainville 2021-07-08 12:11:55 -04:00 committed by Iuri Matias
parent aebb9bdcc7
commit 552b6e8af9
3 changed files with 7 additions and 5 deletions

View File

@ -45,7 +45,8 @@ Theme {
property color currentUserTextColor: white
property color secondaryBackground: "#353a4d"
property color inputBackground: darkGrey
property color secondaryinputBackground: fivePercentBlack
property color secondaryInputBackground: grey
property color secondaryInputText: black
property color inputBorderFocus: blue
property color secondaryMenuBorder: darkGrey
property color inputColor: textColor

View File

@ -45,7 +45,8 @@ Theme {
property color currentUserTextColor: white
property color secondaryBackground: lightBlue
property color inputBackground: grey
property color secondaryinputBackground: fivePercentBlack
property color secondaryInputBackground: fivePercentBlack
property color secondaryInputText: textColor
property color inputBorderFocus: blue
property color secondaryMenuBorder: grey3
property color inputColor: black

View File

@ -737,7 +737,7 @@ Rectangle {
return messageInputField.implicitHeight
}
color: isEdit ? Style.current.secondaryinputBackground : Style.current.inputBackground
color: isEdit ? Style.current.secondaryInputBackground : Style.current.inputBackground
radius: control.isStatusUpdateInput ? 36 :
height > defaultInputFieldHeight + 1 || extendedArea.visible ? 16 : 32
@ -781,7 +781,7 @@ Rectangle {
anchors.bottom: control.isStatusUpdateInput ? undefined : messageInput.top
anchors.top: control.isStatusUpdateInput ? messageInput.bottom : undefined
anchors.topMargin: control.isStatusUpdateInput ? -Style.current.halfPadding : 0
color: isEdit ? Style.current.secondaryinputBackground : Style.current.inputBackground
color: isEdit ? Style.current.secondaryInputBackground : Style.current.inputBackground
radius: control.isStatusUpdateInput ? 36 : 16
Rectangle {
@ -861,7 +861,7 @@ Rectangle {
placeholderText: qsTrId("type-a-message")
placeholderTextColor: Style.current.secondaryText
selectByMouse: true
color: Style.current.textColor
color: isEdit ? Style.current.secondaryInputText : Style.current.textColor
topPadding: control.isStatusUpdateInput ? 18 : Style.current.smallPadding
bottomPadding: control.isStatusUpdateInput ? 14 : 12
Keys.onPressed: onKeyPress(event)