New backup 2025-07-18 20:00:01

This commit is contained in:
Penelope Gwen 2025-07-18 20:00:01 -07:00
parent 50b732ea6d
commit 16ad2897d8
2 changed files with 25 additions and 12 deletions

View file

@ -315,6 +315,10 @@ $home-widget-border-hover-color: rgba($color5,0.3);
} }
// margin-left: 10px; // margin-left: 10px;
} }
.art-button-overlay {
background-color: rgba($color0,0.5);
color: $color5;
}
.nowplayingart { .nowplayingart {
margin: 20px 0px 20px 20px; margin: 20px 0px 20px 20px;
// margin-right: 0px; // margin-right: 0px;

View file

@ -6,6 +6,7 @@
'scripts/home/nowplaying-artist.sh') 'scripts/home/nowplaying-artist.sh')
(defvar large_album_art false) (defvar large_album_art false)
(defvar small_art_overlay false)
(defwidget nowplayingbar [] (defwidget nowplayingbar []
; (centerbox ; (centerbox
(box (box
@ -15,17 +16,25 @@
:halign "center" :halign "center"
:width 300 :width 300
:height 100 :height 100
(button (eventbox
:visible {!large_album_art} :visible {!large_album_art}
:height 100 :onhover '${EWW_CMD} update small_art_overlay=true'
:width 100 :onhoverlost '${EWW_CMD} update small_art_overlay=false'
:valign "cs" (button
:halign "fill" :height 100
:hexpand false :width 100
:vexpand false :valign "cs"
(nowplayingart)) :halign "fill"
; (label :width 0 :hexpand false
; :text "") :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 (box
:class "mediadetails ${large_album_art ? 'fullwidth' : ''}" :class "mediadetails ${large_album_art ? 'fullwidth' : ''}"
:orientation "v" :orientation "v"
@ -70,7 +79,7 @@
(box (box
:class "nowplayingart" :class "nowplayingart"
:hexpand false :hexpand false
:width 100 ; :width 100
:height 100 ; :height 100
; :path '${nowplaying_imgpath}')) ; :path '${nowplaying_imgpath}'))
:style "background-image: url('${nowplaying_imgpath}');")) :style "background-image: url('${nowplaying_imgpath}');"))