✨ feat(widgets): finally added calendar and started developing control center
This commit is contained in:
+13
-15
@@ -1,22 +1,20 @@
|
|||||||
(defwindow calendar
|
(defwindow calendar-window
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :width 300
|
:geometry (geometry :anchor "top center")
|
||||||
:height 250
|
|
||||||
:anchor "top center"
|
|
||||||
)
|
|
||||||
:stacking "fg"
|
:stacking "fg"
|
||||||
:exclusive false
|
:exclusive false
|
||||||
:namespace "eww-calendar"
|
:namespace "eww-calendar"
|
||||||
(box
|
|
||||||
(cal)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
(defwidget cal []
|
(box :class "calendar-box"
|
||||||
(box :class "widget-calendar"
|
:space-evenly false
|
||||||
(box :class "month-calendar"
|
:orientation "vertical"
|
||||||
(button :class "day"
|
|
||||||
1)
|
(label :class "calendar-header"
|
||||||
)
|
:text "Calendar")
|
||||||
|
(calendar :class "month-calendar"
|
||||||
|
:show-details true
|
||||||
|
:show-heading true
|
||||||
|
:show-day-names true
|
||||||
|
:show-week-numbers false)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
|
(include "./widgets/control-center/quickactions.yuck")
|
||||||
|
|
||||||
(defwindow control-center []
|
(defwindow control-center []
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :width "500px"
|
:geometry (geometry :width "500px"
|
||||||
:height "90%"
|
:height "95%"
|
||||||
:anchor "center right")
|
:anchor "center right")
|
||||||
:stacking "overlay"
|
:stacking "overlay"
|
||||||
:exclusive false
|
:exclusive false
|
||||||
:namespace "eww-cc"
|
:namespace "eww-cc"
|
||||||
|
|
||||||
(box
|
(box :class "cc"
|
||||||
(toggles)
|
:orientation "vertical"
|
||||||
|
(quickactions)
|
||||||
|
(toggle-row)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(defwidget toggles []
|
(defwidget toggle-row []
|
||||||
(box :class "row"
|
(box :class "row"
|
||||||
(button :onclick "notify-send 'stop internet!'"
|
:space-evenly false
|
||||||
(box
|
|
||||||
(label :class "title" :text "Internet >")
|
(button :class "network"
|
||||||
(label :class "extra" :text "Caique Wifi")
|
" ")
|
||||||
)
|
(button :class "bluetooth"
|
||||||
)
|
" ")
|
||||||
|
(button :class "dnd"
|
||||||
|
" ")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user