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

View file

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

View file

@ -12,6 +12,7 @@
(box (box
:orientation 'v' :orientation 'v'
:class "nowplayingbar" :class "nowplayingbar"
:space-evenly false
(box (box
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
@ -21,8 +22,12 @@
; (nowplaying_revealer :visible {!large_album_art} ; (nowplaying_revealer :visible {!large_album_art}
; :width 100 ; :width 100
; :height 100) ; :height 100)
(revealer
:transition "slideright"
; :transition "slideleft"
:reveal {!large_album_art}
(eventbox (eventbox
:visible {!large_album_art} :onclick '${EWW_CMD} update large_album_art=true'
:onhover '${EWW_CMD} update small_art_overlay=true' :onhover '${EWW_CMD} update small_art_overlay=true'
:onhoverlost '${EWW_CMD} update small_art_overlay=false' :onhoverlost '${EWW_CMD} update small_art_overlay=false'
(button (button
@ -35,11 +40,17 @@
:onclick '${EWW_CMD} update large_album_art=true' :onclick '${EWW_CMD} update large_album_art=true'
(overlay (overlay
(nowplayingart :size 'small') (nowplayingart :size 'small')
(revealer
:transition "crossfade"
:duration "300ms"
:reveal {small_art_overlay}
(label :class "art-button-overlay" (label :class "art-button-overlay"
:justify "center"
:xalign 0.6
:yalign 0.5
:height 100 :height 100
:width 100 :width 100
:visible {small_art_overlay} :text ""))))))
:text ""))))
(box (box
:class "mediadetails ${large_album_art ? 'fullwidth' : ''}" :class "mediadetails ${large_album_art ? 'fullwidth' : ''}"
:orientation "v" :orientation "v"
@ -80,8 +91,12 @@
:width 25 :width 25
"")))) ""))))
;; (nowplaying_revealer :visible false))) ;; (nowplaying_revealer :visible false)))
(revealer
; :transition "slideup"
:transition "slidedown"
:reveal {large_album_art}
(eventbox (eventbox
:visible {large_album_art} ; :visible {large_album_art}
:onhover '${EWW_CMD} update small_art_overlay=true' :onhover '${EWW_CMD} update small_art_overlay=true'
:onhoverlost '${EWW_CMD} update small_art_overlay=false' :onhoverlost '${EWW_CMD} update small_art_overlay=false'
(button (button
@ -99,7 +114,7 @@
:height 100 :height 100
:width 100 :width 100
:visible {small_art_overlay} :visible {small_art_overlay}
:text "")))))) :text "")))))))
(defwidget nowplayingart [size] (defwidget nowplayingart [size]
(box (box