New backup 2025-07-18 20:15:02
This commit is contained in:
parent
16ad2897d8
commit
c8eacd506c
1 changed files with 85 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue