diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-25 21:51:59 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-25 21:51:59 +1100 |
| commit | e8a40f31c904baeaa1817cd3e418df5ce71302c1 (patch) | |
| tree | de5b15228d2e7227560db91131006ee55af82049 /src/utils | |
| parent | sidebar: media handle no players (diff) | |
| download | caelestia-shell-e8a40f31c904baeaa1817cd3e418df5ce71302c1.tar.gz caelestia-shell-e8a40f31c904baeaa1817cd3e418df5ce71302c1.tar.bz2 caelestia-shell-e8a40f31c904baeaa1817cd3e418df5ce71302c1.zip | |
sidebar: create upcoming module
Requires ical.js and curl
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/widgets.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/utils/widgets.ts b/src/utils/widgets.ts index 7b1eb5c..ef952f2 100644 --- a/src/utils/widgets.ts +++ b/src/utils/widgets.ts @@ -3,7 +3,11 @@ import { Astal, astalify, Gtk, Widget, type ConstructProps } from "astal/gtk3"; import AstalHyprland from "gi://AstalHyprland"; import type { AstalWidget } from "./types"; -export const setupCustomTooltip = (self: AstalWidget, text: string | Binding<string>) => { +export const setupCustomTooltip = ( + self: AstalWidget, + text: string | Binding<string>, + labelProps: Widget.LabelProps = {} +) => { if (!text) return null; self.set_has_tooltip(true); @@ -15,7 +19,7 @@ export const setupCustomTooltip = (self: AstalWidget, text: string | Binding<str keymode: Astal.Keymode.NONE, exclusivity: Astal.Exclusivity.IGNORE, anchor: Astal.WindowAnchor.TOP | Astal.WindowAnchor.LEFT, - child: new Widget.Label({ className: "tooltip", label: text }), + child: new Widget.Label({ ...labelProps, className: "tooltip", label: text }), }); self.set_tooltip_window(window); |