Animate Sidebar ContentView focus switch

This commit is contained in:
2022-08-31 18:28:53 -04:00
parent 1d8d00a7f2
commit 552e18a42f
4 changed files with 63 additions and 4 deletions
+4 -2
View File
@@ -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
}