Cleanup sidebar + resize ContentView to correspond
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
import QtQuick 2.12
|
||||
|
||||
Rectangle {
|
||||
Item {
|
||||
property string name
|
||||
default property bool selected: false
|
||||
color: selected ? "#E4A10D" : "#22282A"
|
||||
width: parent.width
|
||||
property bool selected: false
|
||||
|
||||
width: parent.width * 0.9
|
||||
height: parent.height * 0.08
|
||||
anchors.right: parent.right
|
||||
Rectangle {
|
||||
color: "white"
|
||||
anchors.fill: parent
|
||||
visible: selected ? true : false
|
||||
radius: 10
|
||||
}
|
||||
Row {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.fill: parent
|
||||
Item {
|
||||
height: parent.height
|
||||
width: parent.width * 0.02
|
||||
}
|
||||
Text {
|
||||
font.pointSize: 15
|
||||
text: name
|
||||
color: selected ? "white" : "black"
|
||||
color: selected ? "black" : "white"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user