From c8eacd506c9e14d34586cc2e01d81a2ddb95c85a Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 18 Jul 2025 20:15:02 -0700 Subject: [PATCH] New backup 2025-07-18 20:15:02 --- .../eww/modules/home/nowplayingart.yuck | 145 ++++++++++-------- 1 file changed, 85 insertions(+), 60 deletions(-) diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index 113bba9..5ed6040 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -10,70 +10,95 @@ (defwidget nowplayingbar [] ; (centerbox (box - :class "nowplayingbar" - :orientation "h" - :space-evenly false - :halign "center" - :width 300 - :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 "")))) + :orientation 'v' (box - :class "mediadetails ${large_album_art ? 'fullwidth' : ''}" - :orientation "v" - :space-evenly true - :halign "fill" - :hexpand true - (label - :justify "center" - :text "󰎇 ${nowplaying_title} -󰠃 ${nowplaying_artist}") + :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 "")))) (box - :orientation "h" - :space-evenly true + :class "mediadetails ${large_album_art ? 'fullwidth' : ''}" + :orientation "v" + :space-evenly true :halign "fill" :hexpand true -; :width 130 -; :spacing 15 - :height 50 - (button - :class "mediabutton" - :valign "center" - :halign "center" - :height 25 - :width 25 - "") - (button - :class "mediabutton" - :valign "center" - :halign "center" - :height 25 - :width 25 - "󰐎") - (button - :class "mediabutton" - :valign "center" - :halign "center" - :height 25 - :width 25 - ""))))) + (label + :justify "center" + :text "󰎇 ${nowplaying_title} +󰠃 ${nowplaying_artist}") + (box + :orientation "h" + :space-evenly true + :halign "fill" + :hexpand true +; :width 130 +; :spacing 15 + :height 50 + (button + :class "mediabutton" + :valign "center" + :halign "center" + :height 25 + :width 25 + "") + (button + :class "mediabutton" + :valign "center" + :halign "center" + :height 25 + :width 25 + "󰐎") + (button + :class "mediabutton" + :valign "center" + :halign "center" + :height 25 + :width 25 + "")))) + (nowplaying_revealer :visible {large_album_art}))) + +(defwidget nowplaying_revealer [] + (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 ""))))) (defwidget nowplayingart [] (box