use hyprland's animations instead of gtk css

should make things much smoother
This commit is contained in:
end-4
2024-04-05 06:08:13 +07:00
parent c5b2452d28
commit f1075bb960
7 changed files with 23 additions and 41 deletions
@@ -18,14 +18,17 @@ export default ({
child: Box({
setup: (self) => {
self.hook(App, (self, currentName, visible) => {
if (currentName === name) {
self.toggleClassName(hideClassName, !visible);
}
}).keybind("Escape", () => closeEverything());
self.keybind("Escape", () => closeEverything());
if (showClassName != "" && hideClassName !== "") {
self.hook(App, (self, currentName, visible) => {
if (currentName === name) {
self.toggleClassName(hideClassName, !visible);
}
});
if (showClassName !== "" && hideClassName !== "")
self.className = `${showClassName} ${hideClassName}`;
if (showClassName !== "" && hideClassName !== "")
self.className = `${showClassName} ${hideClassName}`;
}
},
child: child,
}),
-2
View File
@@ -6,7 +6,5 @@ export default () => PopupWindow({
anchor: ['left', 'top', 'bottom'],
name: 'sideleft',
layer: 'overlay',
showClassName: 'sideleft-show',
hideClassName: 'sideleft-hide',
child: SidebarLeft(),
});
-2
View File
@@ -6,7 +6,5 @@ export default () => PopupWindow({
anchor: ['right', 'top', 'bottom'],
name: 'sideright',
layer: 'overlay',
showClassName: 'sideright-show',
hideClassName: 'sideright-hide',
child: SidebarRight(),
});