style(eww): Initial design

This commit is contained in:
Ahmad Ansori Palembani 2024-05-14 16:56:42 +07:00
parent c6c0e33970
commit 6f57c1a670
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 89 additions and 41 deletions

View file

@ -29,7 +29,8 @@
(workspaces))
(defwidget middle []
(clock))
(box :class "middle"
(clock)))
(defwidget end []
(box :halign "end"
@ -46,7 +47,7 @@
id))))
(defwidget clock []
(eventbox :onclick `eww update dtfull=${!dtfull}`
(eventbox :class "clock" :onclick `eww update dtfull=${!dtfull}`
(label :text {dtfull ? datetime.full : datetime.date})))
(defwidget pair [icon text]