summaryrefslogtreecommitdiff
path: root/examples/js/simple-bar/widget/Bar.tsx
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-19 21:32:48 +0100
committerAylur <[email protected]>2024-12-19 21:32:48 +0100
commit61637d6333bd812021763039ceea61e7f7d29dbf (patch)
treebebdc24df1d5d0a9c7bf2c2f98376c1be341ee80 /examples/js/simple-bar/widget/Bar.tsx
parent64150c7739049e3cc9b6b931eba58a635cbc24df (diff)
parentc12fb05408c1cd1b1bca545fec636abda52f6755 (diff)
Merge branch 'main' into feat/tray-gtk4
Diffstat (limited to 'examples/js/simple-bar/widget/Bar.tsx')
-rw-r--r--examples/js/simple-bar/widget/Bar.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx
index 029aca1..f5e96cb 100644
--- a/examples/js/simple-bar/widget/Bar.tsx
+++ b/examples/js/simple-bar/widget/Bar.tsx
@@ -128,15 +128,13 @@ function Time({ format = "%H:%M - %A %e." }) {
}
export default function Bar(monitor: Gdk.Monitor) {
- const anchor = Astal.WindowAnchor.TOP
- | Astal.WindowAnchor.LEFT
- | Astal.WindowAnchor.RIGHT
+ const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
return <window
className="Bar"
gdkmonitor={monitor}
exclusivity={Astal.Exclusivity.EXCLUSIVE}
- anchor={anchor}>
+ anchor={TOP | LEFT | RIGHT}>
<centerbox>
<box hexpand halign={Gtk.Align.START}>
<Workspaces />