From dcd914dbae039560a4ad4db4edd0264845f7024b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:22:22 +1100 Subject: better popup window Not manual using css, instead use a combination of css opacity and Hyprland animations --- modules/launcher.tsx | 54 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'modules') diff --git a/modules/launcher.tsx b/modules/launcher.tsx index 83245ca..b212b85 100644 --- a/modules/launcher.tsx +++ b/modules/launcher.tsx @@ -8,7 +8,7 @@ import { Apps } from "../services/apps"; import Math, { type HistoryItem } from "../services/math"; import { getAppCategoryIcon } from "../utils/icons"; import { launch } from "../utils/system"; -import { PopupWindow, setupCustomTooltip, TransitionType } from "../utils/widgets"; +import { convertPopupWindowProps, setupCustomTooltip } from "../utils/widgets"; type Mode = "apps" | "files" | "math"; @@ -323,11 +323,7 @@ const LauncherContent = ({ showResults: Variable; entry: Widget.Entry; }) => ( - `launcher ${m}`)} - css={bind(AstalHyprland.get_default(), "focusedMonitor").as(m => `margin-top: ${m.height / 4}px;`)} - > + `launcher ${m}`)}>