bla
This commit is contained in:
parent
2c9ff9db2f
commit
7da7b506f9
5 changed files with 120 additions and 50 deletions
|
@ -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()}
|
||||
/>
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue