This commit is contained in:
Bloxx12 2025-04-22 21:10:49 +02:00
commit 7da7b506f9
5 changed files with 120 additions and 50 deletions

View file

@ -1,11 +1,15 @@
import { GLib, Variable, } from "astal"
import { App, Gtk, Gdk } from "astal/gtk4";
export default function Time({ }) {
const time = Variable<string>("").poll(1000, () => GLib.DateTime.new_now_local().format("%H:%M")!)
return <label
cssName="Time"
onDestroy={() => time.drop()}
label={time()} />
label={time()}
/>
}