fix(StatusBaseInput): fix outline border color

set the "active" outline color only when the cursor is visible;
rationale: we can have focus even if we are read only!
This commit is contained in:
Lukáš Tinkl 2023-09-27 12:59:08 +02:00 committed by Lukáš Tinkl
parent b8eccc67a2
commit b80c742b33
1 changed files with 2 additions and 3 deletions

View File

@ -278,8 +278,7 @@ Item {
Rectangle {
id: background
anchors.fill: parent
color: root.showBackground ? Theme.palette.baseColor2
: "transparent"
color: root.showBackground ? Theme.palette.baseColor2 : "transparent"
radius: 8
clip: true
@ -292,7 +291,7 @@ Item {
if (!root.valid && root.dirty) {
return Theme.palette.dangerColor1
}
if (edit.activeFocus) {
if (edit.cursorVisible) {
return Theme.palette.primaryColor1
}
return sensor.containsMouse ? Theme.palette.primaryColor2 : "transparent"