From e8a40f31c904baeaa1817cd3e418df5ce71302c1 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 25 Mar 2025 21:51:59 +1100 Subject: sidebar: create upcoming module Requires ical.js and curl --- src/utils/widgets.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/utils/widgets.ts') 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) => { +export const setupCustomTooltip = ( + self: AstalWidget, + text: string | Binding, + labelProps: Widget.LabelProps = {} +) => { if (!text) return null; self.set_has_tooltip(true); @@ -15,7 +19,7 @@ export const setupCustomTooltip = (self: AstalWidget, text: string | Binding