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:
parent
b8eccc67a2
commit
b80c742b33
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue