fix(Separator): ensure custom color works as expected
This was a regression introduced in https://github.com/status-im/status-desktop/pull/2065. The new wrapping Rectangle would get the color that is possibily passed down to Separator. Instead it should get properly bound to the actual separator.
This commit is contained in:
parent
b7124372e9
commit
accf92be2f
|
@ -1,17 +1,17 @@
|
||||||
import QtQuick 2.13
|
import QtQuick 2.13
|
||||||
import "../imports"
|
import "../imports"
|
||||||
|
|
||||||
Rectangle {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
property color color: Style.current.border
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: root.visible ? 1 : 0
|
height: root.visible ? 1 : 0
|
||||||
anchors.topMargin: Style.current.padding
|
anchors.topMargin: Style.current.padding
|
||||||
color: "transparent"
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: separator
|
id: separator
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1
|
height: 1
|
||||||
color: Style.current.border
|
color: root.color
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue