mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
left sidebar: fix width anim
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user