Eww: Modularized and improved CSS

This commit is contained in:
soraefir
2023-11-23 20:46:43 +01:00
parent 5e569bbb48
commit afaed60935
12 changed files with 207 additions and 139 deletions

View File

@ -1,8 +1,3 @@
(defwidget calendar-win []
(box
:class "calendar-win"
(calendar)))
(defwindow calendar
:monitor 0
:geometry (geometry
@ -11,4 +6,4 @@
:anchor "bottom right"
:width "0px"
:height "0px")
(calendar-win))
(window (calendar)))

View File

@ -1,11 +1,6 @@
(deflisten radio :initial '{"is_paused":1,"song":{"artist":"","song":"","image600":"https://www.radiorecord.ru/upload/stations_images/record_image600_white_fill.png"},"stations":[]}' "scripts/radio")
(defvar radio_rev false)
(defwidget radio-win []
(box
:class "radio-win"
(radio)))
(defwindow radio
:monitor 0
:geometry (geometry
@ -14,10 +9,10 @@
:anchor "bottom right"
:width "0px"
:height "0px")
(radio-win))
(window (radio-win)))
(defwidget radio []
(defwidget radio-win []
(box
:space-evenly false
:orientation "h"
@ -100,10 +95,14 @@
)
)
(defwidget radio-button []
(button
:onclick "${EWW_CMD} open --toggle --no-daemonize radio"
(box
:class "module"
(defwidget radio-mod []
(module
(box
:orientation "v"
"󰎆")))
(button
:onclick "${EWW_CMD} open --toggle --no-daemonize radio"
"󰎆"
)
)
)
)

View File

@ -114,10 +114,11 @@
(defwindow sys
:monitor 0
:stacking "overlay"
:geometry (geometry
:x "0%"
:y "0%"
:anchor "bottom right"
:width "0px"
:height "0px")
(sys-win))
(window (sys-win)))