feat(eww): Make calendar interactive
This commit is contained in:
parent
114ca1fd2b
commit
2bc5e50b16
2 changed files with 18 additions and 7 deletions
|
@ -5,7 +5,7 @@
|
|||
font-size: 13px;
|
||||
}
|
||||
|
||||
.bar, tooltip {
|
||||
.bar, tooltip, window.calendar {
|
||||
background-image: linear-gradient(160deg, $background1, $background2), linear-gradient(160deg, $accent1, $accent2);
|
||||
background-clip: padding-box, border-box;
|
||||
background-origin: border-box;
|
||||
|
@ -95,7 +95,7 @@ circular-progress > * {
|
|||
font-size: 11px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
tooltip, window.calendar {
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
|
|
@ -216,15 +216,26 @@
|
|||
)
|
||||
|
||||
(defwidget clock []
|
||||
(tooltip
|
||||
(calendar :day {day}
|
||||
:month {month}
|
||||
:year {year}
|
||||
)
|
||||
(eventbox :onclick "eww open --toggle calendar"
|
||||
(label :text " ${datetime}")
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow calendar :monitor 0
|
||||
:geometry (geometry :x "5px"
|
||||
:y "5px"
|
||||
:width "300px"
|
||||
:height "169px"
|
||||
:anchor "top right"
|
||||
)
|
||||
:stacking "fg"
|
||||
:exclusive false
|
||||
(calendar :day {day}
|
||||
:month {month}
|
||||
:year {year}
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
; Bar
|
||||
|
|
Loading…
Reference in a new issue