fix(StatusBaseInput): ensure correct text color is set for disabled

state
This commit is contained in:
Pascal Precht 2022-07-13 14:38:37 +02:00 committed by Michał Cieślak
parent 9f87c24a6e
commit cf5461799f
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ Item {
focus: true focus: true
font.pixelSize: 15 font.pixelSize: 15
font.family: Theme.palette.baseFont.name font.family: Theme.palette.baseFont.name
color: Theme.palette.directColor1 color: root.enabled ? Theme.palette.directColor1 : Theme.palette.baseColor1
wrapMode: root.multiline ? Text.WrapAtWordBoundaryOrAnywhere : TextEdit.NoWrap wrapMode: root.multiline ? Text.WrapAtWordBoundaryOrAnywhere : TextEdit.NoWrap
Keys.onReturnPressed: event.accepted = !multiline && !acceptReturn Keys.onReturnPressed: event.accepted = !multiline && !acceptReturn