summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 20:58:01 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 20:58:01 +1100
commit751ad07e151f0abfd111c4d800d172f726ffa33c (patch)
tree84c2d1485ecb6dea6c02d67bf5302d7d90e69ce6 /utils
parentlauncher: math derive short form + help (diff)
downloadcaelestia-shell-751ad07e151f0abfd111c4d800d172f726ffa33c.tar.gz
caelestia-shell-751ad07e151f0abfd111c4d800d172f726ffa33c.tar.bz2
caelestia-shell-751ad07e151f0abfd111c4d800d172f726ffa33c.zip
brightness and volume osds
Diffstat (limited to 'utils')
-rw-r--r--utils/widgets.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/widgets.tsx b/utils/widgets.tsx
index c9d6019..562f1ec 100644
--- a/utils/widgets.tsx
+++ b/utils/widgets.tsx
@@ -52,12 +52,16 @@ 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,
...props,
visible: false,
application: App,
+ name: props.monitor
+ ? overrideProp(props.name, n => (n && props.monitor ? n + props.monitor : undefined))
+ : props.name,
namespace: overrideProp(props.name, n => `caelestia-${n}`),
className: overrideProp(props.className, c => `popup ${c}`),
onKeyPressEvent: (self, event) => {