Change sidebar font color based on selected prop
This commit is contained in:
@@ -8,10 +8,10 @@ Rectangle {
|
|||||||
height: parent.height * 0.08
|
height: parent.height * 0.08
|
||||||
Row {
|
Row {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
//Item { width: 50; height: 100}
|
|
||||||
Text {
|
Text {
|
||||||
font.pointSize: 15
|
font.pointSize: 15
|
||||||
text: name
|
text: name
|
||||||
|
color: selected ? "white" : "black"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user