New backup 2025-07-18 20:15:02

This commit is contained in:
Penelope Gwen 2025-07-18 20:15:02 -07:00
parent 16ad2897d8
commit c8eacd506c

View file

@ -9,6 +9,8 @@
(defvar small_art_overlay false) (defvar small_art_overlay false)
(defwidget nowplayingbar [] (defwidget nowplayingbar []
; (centerbox ; (centerbox
(box
:orientation 'v'
(box (box
:class "nowplayingbar" :class "nowplayingbar"
:orientation "h" :orientation "h"
@ -16,25 +18,26 @@
:halign "center" :halign "center"
:width 300 :width 300
:height 100 :height 100
(eventbox (nowplaying_revealer :visible {!large_album_art})
:visible {!large_album_art} ; (eventbox
:onhover '${EWW_CMD} update small_art_overlay=true' ; :visible {!large_album_art}
:onhoverlost '${EWW_CMD} update small_art_overlay=false' ; :onhover '${EWW_CMD} update small_art_overlay=true'
(button ; :onhoverlost '${EWW_CMD} update small_art_overlay=false'
:height 100 ; (button
:width 100 ; :height 100
:valign "cs" ; :width 100
:halign "fill" ; :valign "cs"
:hexpand false ; :halign "fill"
:vexpand false ; :hexpand false
:onclick '${EWW_CMD} update large_album_art=true' ; :vexpand false
(overlay ; :onclick '${EWW_CMD} update large_album_art=true'
(nowplayingart) ; (overlay
(label :class "art-button-overlay" ; (nowplayingart)
:height 100 ; (label :class "art-button-overlay"
:width 100 ; :height 100
:visible {small_art_overlay} ; :width 100
:text "")))) ; :visible {small_art_overlay}
; :text ""))))
(box (box
:class "mediadetails ${large_album_art ? 'fullwidth' : ''}" :class "mediadetails ${large_album_art ? 'fullwidth' : ''}"
:orientation "v" :orientation "v"
@ -73,7 +76,29 @@
:halign "center" :halign "center"
:height 25 :height 25
:width 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 [] (defwidget nowplayingart []
(box (box