2
0
mirror of synced 2025-01-22 04:19:24 +00:00

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 r4bbit.eth
parent c697467c68
commit c0d434bbdf

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