eww: refactor and improved experience with media widgets
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
(include "widgets/control-center/top-bar.yuck")
|
||||
(include "widgets/control-center/notifications.yuck")
|
||||
(include "widgets/control-center/big-media.yuck")
|
||||
(include "widgets/control-center/notification.yuck")
|
||||
(include "widgets/control-center/toggles.yuck")
|
||||
|
||||
@@ -17,7 +16,9 @@
|
||||
:space-evenly false
|
||||
(top-bar)
|
||||
(toggles)
|
||||
(big-media :album-background true)
|
||||
(big-media :show-album-bg true
|
||||
:show-album-image true
|
||||
:visible { json_media != "" ? true : false })
|
||||
(notifications)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
(defwindow floating-media []
|
||||
:monitor 0
|
||||
:geometry (geometry :anchor "top center"
|
||||
:width "350px")
|
||||
:width "420px")
|
||||
:exclusive false
|
||||
:stacking "overlay"
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:namespace "eww-media"
|
||||
(box :class "floating-media"
|
||||
:orientation "vertical"
|
||||
:space-evenly false
|
||||
:style "box-shadow: 0 5px 6px 1px rgb(0, 0, 0);"
|
||||
(big-media :album-background true
|
||||
:player-info true)
|
||||
(big-media :show-album-bg true
|
||||
:album-image-size 124
|
||||
:show-album-image true)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user