2023-05-28 18:05:51 -04:00
|
|
|
(defwidget divider []
|
|
|
|
(box :class "divider"
|
|
|
|
:orientation "v"
|
|
|
|
:space-evenly true)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget time []
|
|
|
|
(box :class "timebox"
|
|
|
|
:orientation "v"
|
|
|
|
:space-evenly false
|
|
|
|
(box :class "time-container"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:halign "center"
|
|
|
|
:valign "center"
|
|
|
|
(label :text "${lithour}" :class "content")
|
|
|
|
(divider)
|
|
|
|
(label :text "${litmin}" :class "content")
|
|
|
|
)
|
|
|
|
(box :class "date-container"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly true
|
|
|
|
:halign "center"
|
|
|
|
(label :text "${completeday}")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget cal []
|
|
|
|
(box :class "cal-box"
|
|
|
|
:orientation "v"
|
|
|
|
:space-evenly false
|
|
|
|
(calendar :class "cal"
|
|
|
|
:day calendar_day
|
|
|
|
:month calendar_month
|
|
|
|
:year calendar_year)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget date []
|
|
|
|
(box :class "date"
|
|
|
|
:orientation "v"
|
|
|
|
:space-evenly false
|
|
|
|
(time)
|
|
|
|
(cal)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2023-05-31 02:29:22 -04:00
|
|
|
(defvar date-visible false)
|
|
|
|
|
|
|
|
(defwindow date-reveal
|
2023-05-28 18:05:51 -04:00
|
|
|
:monitor 0
|
2023-06-08 04:59:45 -04:00
|
|
|
:stacking "overlay"
|
2023-05-29 15:59:55 -04:00
|
|
|
:geometry (geometry :x "70px"
|
|
|
|
:y "4px"
|
2023-05-28 18:05:51 -04:00
|
|
|
:width "0px" ; automatically generated
|
|
|
|
:height "0px" ; automatically generated
|
2023-05-29 15:59:55 -04:00
|
|
|
:anchor "top right")
|
2023-05-31 02:29:22 -04:00
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal date-visible
|
|
|
|
:duration "550ms"
|
|
|
|
(date)))
|