mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
left sidebar: fix width anim
This commit is contained in:
parent
aaf652b17c
commit
e024f896a6
1 changed files with 4 additions and 1 deletions
|
|
@ -30,7 +30,6 @@ Scope { // Scope
|
|||
}
|
||||
|
||||
onPinChanged: {
|
||||
console.log("Sidebar pin state changed:", root.pin);
|
||||
if (root.pin) {
|
||||
sidebarContent.parent = null; // Detach content from sidebar
|
||||
sidebarLoader.active = false; // Unload sidebar
|
||||
|
|
@ -105,6 +104,10 @@ Scope { // Scope
|
|||
color: Appearance.colors.colLayer0
|
||||
radius: Appearance.rounding.screenRounding - Appearance.sizes.elevationMargin + 1
|
||||
|
||||
Behavior on width {
|
||||
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
||||
}
|
||||
|
||||
Keys.onPressed: (event) => {
|
||||
if (event.key === Qt.Key_Escape) {
|
||||
sidebarRoot.hide();
|
||||
|
|
|
|||
Loading…
Reference in a new issue