New backup 2025-07-18 22:45:02

This commit is contained in:
Penelope Gwen 2025-07-18 22:45:02 -07:00
parent ee1ffb512a
commit d9b9b3a380
3 changed files with 58 additions and 40 deletions

View file

@ -311,11 +311,12 @@ $home-widget-border-hover-color: rgba($color5,0.3);
margin: 0px;
}
&.fullwidth {
margin: 0px 35px;
margin: 5px 35px;
}
// margin-left: 10px;
}
.art-button-overlay {
font-size: 2em;
background-color: rgba($color0,0.5);
color: $color5;
}
@ -324,7 +325,9 @@ $home-widget-border-hover-color: rgba($color5,0.3);
margin: 20px 0px 20px 20px;
}
&.big {
margin: 20px;
margin: 25px;
// border-radius: 0;
min-height: 250px;
}
// margin-right: 0px;
border: 1px solid $home-widget-border-color;

View file

@ -2,7 +2,7 @@
:interval "3600s"
'scripts/home/notes')
(defvar reveal_notes true)
(defvar reveal_notes false)
(defwidget notes_revealer []
(revealer-on-press
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}

View file

@ -12,6 +12,7 @@
(box
:orientation 'v'
:class "nowplayingbar"
:space-evenly false
(box
:orientation "h"
:space-evenly false
@ -21,25 +22,35 @@
; (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
(revealer
:transition "slideright"
; :transition "slideleft"
:reveal {!large_album_art}
(eventbox
:onclick '${EWW_CMD} update large_album_art=true'
(overlay
(nowplayingart :size 'small')
(label :class "art-button-overlay"
:height 100
:width 100
:visible {small_art_overlay}
:text ""))))
: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 :size 'small')
(revealer
:transition "crossfade"
:duration "300ms"
:reveal {small_art_overlay}
(label :class "art-button-overlay"
:justify "center"
:xalign 0.6
:yalign 0.5
:height 100
:width 100
:text ""))))))
(box
:class "mediadetails ${large_album_art ? 'fullwidth' : ''}"
:orientation "v"
@ -80,26 +91,30 @@
:width 25
""))))
;; (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 :size 'big')
(revealer
; :transition "slideup"
:transition "slidedown"
:reveal {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=false'
(overlay
(nowplayingart :size 'big')
; :css 'margin: 20px;')
(label :class "art-button-overlay"
:height 100
:width 100
:visible {small_art_overlay}
:text ""))))))
(label :class "art-button-overlay"
:height 100
:width 100
:visible {small_art_overlay}
:text "")))))))
(defwidget nowplayingart [size]
(box