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 {
|
Rectangle {
|
||||||
id: background
|
id: background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: root.showBackground ? Theme.palette.baseColor2
|
color: root.showBackground ? Theme.palette.baseColor2 : "transparent"
|
||||||
: "transparent"
|
|
||||||
radius: 8
|
radius: 8
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
@ -292,7 +291,7 @@ Item {
|
||||||
if (!root.valid && root.dirty) {
|
if (!root.valid && root.dirty) {
|
||||||
return Theme.palette.dangerColor1
|
return Theme.palette.dangerColor1
|
||||||
}
|
}
|
||||||
if (edit.activeFocus) {
|
if (edit.cursorVisible) {
|
||||||
return Theme.palette.primaryColor1
|
return Theme.palette.primaryColor1
|
||||||
}
|
}
|
||||||
return sensor.containsMouse ? Theme.palette.primaryColor2 : "transparent"
|
return sensor.containsMouse ? Theme.palette.primaryColor2 : "transparent"
|
||||||
|
|
Loading…
Reference in New Issue