summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 21:27:47 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 21:27:47 +1100
commit9bbb2ca3c9e281d6961f6cb8a8a0d60751c695c4 (patch)
treec4bac3df911eb1e629ea5ac7a8676e56e05e8ed8 /utils
parentfix menus (diff)
downloadcaelestia-shell-9bbb2ca3c9e281d6961f6cb8a8a0d60751c695c4.tar.gz
caelestia-shell-9bbb2ca3c9e281d6961f6cb8a8a0d60751c695c4.tar.bz2
caelestia-shell-9bbb2ca3c9e281d6961f6cb8a8a0d60751c695c4.zip
popupwindow: fix shadow
Diffstat (limited to 'utils')
-rw-r--r--utils/widgets.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/widgets.tsx b/utils/widgets.tsx
index 4257060..7fddd04 100644
--- a/utils/widgets.tsx
+++ b/utils/widgets.tsx
@@ -52,7 +52,6 @@ const overrideProp = <T,>(
override: (prop: T | undefined) => T | undefined
) => prop && (prop instanceof Binding ? prop.as(override) : override(prop));
-// TODO: fix shadow by putting child in a box with padding, also add shadow to .popup
export const convertPopupWindowProps = (props: Widget.WindowProps): Widget.WindowProps => ({
keymode: Astal.Keymode.ON_DEMAND,
exclusivity: Astal.Exclusivity.IGNORE,
@@ -74,6 +73,7 @@ export const convertPopupWindowProps = (props: Widget.WindowProps): Widget.Windo
self.connect("notify::visible", () => self.toggleClassName("visible", self.visible));
props.setup?.(self);
},
+ borderWidth: 20, // To allow shadow, cause if not it gets cut off
});
export const PopupWindow = (props: Widget.WindowProps) => <window {...convertPopupWindowProps(props)} />;