From 751ad07e151f0abfd111c4d800d172f726ffa33c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 20:58:01 +1100 Subject: brightness and volume osds --- utils/widgets.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils') 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 = ( 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) => { -- cgit v1.2.3-freya