diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index 7ae7c80..e2ab84d 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -11,33 +11,35 @@ ; (centerbox (box :orientation 'v' + :class "nowplayingbar" (box - :class "nowplayingbar" :orientation "h" :space-evenly false :halign "center" :width 300 :height 100 - (nowplaying_revealer :visible {!large_album_art}) -; (eventbox -; :visible {!large_album_art} -; :onhover '${EWW_CMD} update small_art_overlay=true' -; :onhoverlost '${EWW_CMD} update small_art_overlay=false' -; (button -; :height 100 -; :width 100 -; :valign "cs" -; :halign "fill" -; :hexpand false -; :vexpand false -; :onclick '${EWW_CMD} update large_album_art=true' -; (overlay -; (nowplayingart) -; (label :class "art-button-overlay" -; :height 100 -; :width 100 -; :visible {small_art_overlay} -; :text "")))) +; (nowplaying_revealer :visible {!large_album_art} +; :width 100 +; :height 100) + (eventbox + :visible {!large_album_art} + :onhover '${EWW_CMD} update small_art_overlay=true' + :onhoverlost '${EWW_CMD} update small_art_overlay=false' + (button + :height 100 + :width 100 + :valign "cs" + :halign "fill" + :hexpand false + :vexpand false + :onclick '${EWW_CMD} update large_album_art=true' + (overlay + (nowplayingart) + (label :class "art-button-overlay" + :height 100 + :width 100 + :visible {small_art_overlay} + :text "")))) (box :class "mediadetails ${large_album_art ? 'fullwidth' : ''}" :orientation "v" @@ -77,7 +79,26 @@ :height 25 :width 25 "")))) - (nowplaying_revealer :visible {large_album_art}))) +;; (nowplaying_revealer :visible false))) + (eventbox + :visible {large_album_art} + :onhover '${EWW_CMD} update small_art_overlay=true' + :onhoverlost '${EWW_CMD} update small_art_overlay=false' + (button + :height 100 + :width 100 + :valign "cs" + :halign "fill" + :hexpand false + :vexpand false + :onclick '${EWW_CMD} update large_album_art=false' + (overlay + (nowplayingart) + (label :class "art-button-overlay" + :height 100 + :width 100 + :visible {small_art_overlay} + :text "")))))) ;(defwidget nowplaying_revealer [revealvar revealvar-name] (defwidget nowplaying_revealer [] @@ -86,13 +107,13 @@ :onhover '${EWW_CMD} update small_art_overlay=true' :onhoverlost '${EWW_CMD} update small_art_overlay=false' (button - :height 100 - :width 100 +;; :height 100 +;; :width 100 :valign "center" :halign "fill" :hexpand false :vexpand false - :onclick '${EWW_CMD} update large_album_art=true' + :onclick '${EWW_CMD} update large_album_art=${large_album_art ? "false" : "true"}' (overlay (nowplayingart) (label :class "art-button-overlay"