Add mostly final ags config
This commit is contained in:
parent
c310042564
commit
bce65f6835
23 changed files with 999 additions and 156 deletions
|
@ -0,0 +1,41 @@
|
|||
import { date } from "../../state.js";
|
||||
|
||||
function BlinkingDots() {
|
||||
return Widget.Label({
|
||||
class_name: "blinking-dots",
|
||||
label: ":",
|
||||
});
|
||||
}
|
||||
|
||||
export function Clock() {
|
||||
return Widget.Box({
|
||||
children: [
|
||||
Widget.Box({ hexpand: true, hpack: "fill" }), // Separator
|
||||
Widget.Box({
|
||||
children: [
|
||||
Widget.Label({
|
||||
label: date.bind().as((d) => {
|
||||
return d.split(" ")[0];
|
||||
}),
|
||||
}),
|
||||
BlinkingDots(),
|
||||
Widget.Label({
|
||||
label: date.bind().as((d) => {
|
||||
return d.split(" ")[1];
|
||||
}),
|
||||
}),
|
||||
BlinkingDots(),
|
||||
Widget.Label({
|
||||
label: date.bind().as((d) => {
|
||||
return d.split(" ")[2];
|
||||
}),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
Widget.Box({ hexpand: true, hpack: "fill" }), // Separator
|
||||
],
|
||||
class_names: ["clock", "clock-big"],
|
||||
hpack: "fill",
|
||||
spacing: 8,
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue