✨ eww(mediaplayer): add image path support for album art
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
:prepend-new false
|
||||
:class "systray"
|
||||
)
|
||||
(hardware)
|
||||
(audio)
|
||||
(battery)
|
||||
(network)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
:text { formattime(EWW_TIME, "%H:%M") })
|
||||
|
||||
(label :class "date"
|
||||
:text { formattime(EWW_TIME, "%B %d, %Y") })
|
||||
:text { month_name + formattime(EWW_TIME, " %d, %Y") })
|
||||
(calendar :class "month-calendar"
|
||||
:show-details true
|
||||
:show-heading true
|
||||
|
||||
@@ -12,14 +12,18 @@
|
||||
:exclusive false
|
||||
:namespace "eww-cc"
|
||||
|
||||
(box :class "cc"
|
||||
:orientation "vertical"
|
||||
:space-evenly false
|
||||
(box :orientation "horizontal"
|
||||
(eventbox
|
||||
(box :class "cc"
|
||||
:orientation "vertical"
|
||||
:space-evenly false
|
||||
|
||||
(top-bar)
|
||||
(tiles)
|
||||
(revealer :reveal { window_state_floating-media != "open" }
|
||||
:transition "slideup"
|
||||
:duration "380ms"
|
||||
|
||||
(big-media :show-album-bg true
|
||||
:show-album-image true
|
||||
:visible { json_media == "" || (json_media.title == "null"
|
||||
@@ -29,10 +33,13 @@
|
||||
(box :class "bottom button-row"
|
||||
:halign "end"
|
||||
:space-evenly false
|
||||
|
||||
(button :class "clear-all"
|
||||
:onclick "sh scripts/notification-clear.sh"
|
||||
:visible { arraylength(json_notification_history["history"]) > 0 }
|
||||
" Clear")
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
(defwindow floating-media []
|
||||
:monitor 0
|
||||
:geometry (geometry :anchor "top center"
|
||||
:width "450px")
|
||||
:width "460px")
|
||||
:exclusive false
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
@@ -13,7 +13,7 @@
|
||||
&& json_media.artist == "null") ? false : true }
|
||||
|
||||
(big-media :show-album-bg true
|
||||
:album-image-size 124
|
||||
:album-image-size 128
|
||||
:show-album-image true
|
||||
:style "margin: 16px; margin-top: 0; box-shadow:
|
||||
0 5px 6px 1px rgba(0, 0, 0, .6),
|
||||
|
||||
Reference in New Issue
Block a user