Animate Sidebar ContentView focus switch
This commit is contained in:
@@ -4,6 +4,7 @@ import QtGraphicalEffects 1.12
|
||||
Item {
|
||||
property var provider
|
||||
property bool selected: false
|
||||
property bool maximized
|
||||
|
||||
width: parent.width * 0.9
|
||||
height: parent.height * 0.07
|
||||
@@ -16,7 +17,7 @@ Item {
|
||||
color: "black"
|
||||
opacity: 0.5
|
||||
source: selector
|
||||
visible: selected ? true : false
|
||||
visible: selected && maximized
|
||||
}
|
||||
Rectangle {
|
||||
id: selector
|
||||
@@ -24,7 +25,7 @@ Item {
|
||||
height: parent.height
|
||||
width: parent.width * 0.95
|
||||
//anchors.fill: parent
|
||||
visible: selected ? true : false
|
||||
visible: selected && maximized
|
||||
radius: 10
|
||||
}
|
||||
Row {
|
||||
@@ -64,6 +65,7 @@ Item {
|
||||
color: selected ? "#3c3c3c" : "#99afb4"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.verticalCenterOffset: 4
|
||||
visible: maximized
|
||||
//verticalAlignment: Text.AlignVCenter
|
||||
//height: parent.height
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user