Commit 7b6bec26 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

add transitions between maximized header bar and normal one

BUG: 399418
parent 087070db
......@@ -258,6 +258,22 @@ ApplicationWindow {
StateGroup {
id: mainWindowState
states: [
State {
name: "headerBarIsNormal"
when: !headerBar.isMaximized
changes: [
PropertyChanges {
target: mainWindow
minimumHeight: 600
explicit: true
},
PropertyChanges {
target: headerBarParent
Layout.minimumHeight: mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight
Layout.maximumHeight: mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight
}
]
},
State {
name: "headerBarIsMaximized"
when: headerBar.isMaximized
......@@ -271,15 +287,17 @@ ApplicationWindow {
target: headerBarParent
Layout.minimumHeight: mainWindow.height
Layout.maximumHeight: mainWindow.height
},
PropertyChanges {
target: contentView
height: 0
visible: false
}
]
}
]
transitions: Transition {
NumberAnimation {
properties: "Layout.minimumHeight, Layout.maximumHeight, minimumHeight"
easing.type: Easing.InOutQuad
duration: 300
}
}
}
Component.onCompleted:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment