dock: animate bar width change, extend dock to top of screen
This commit is contained in:
parent
f501f977d1
commit
c6fd199bd7
3 changed files with 14 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ PanelWindow {
|
|||
anchors.right: true
|
||||
anchors.bottom: true
|
||||
|
||||
// Counteract the bar's exclusive zone so the dock extends to the top of the screen
|
||||
margins.top: -S.Theme.barHeight
|
||||
|
||||
readonly property int _dockWidth: S.Modules.dock.width ?? 300
|
||||
readonly property var _applets: S.Modules.dock.applets ?? {}
|
||||
readonly property color _accent: S.Theme.base0C
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ PanelWindow {
|
|||
|
||||
margins.right: S.DockState.reservedWidth
|
||||
|
||||
Behavior on margins.right {
|
||||
enabled: !S.Theme.reducedMotion
|
||||
NumberAnimation {
|
||||
duration: 200
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
implicitHeight: S.Theme.barHeight
|
||||
exclusiveZone: implicitHeight
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue