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,25 +22,35 @@
; (nowplaying_revealer :visible {!large_album_art} ; (nowplaying_revealer :visible {!large_album_art}
; :width 100 ; :width 100
; :height 100) ; :height 100)
(eventbox (revealer
:visible {!large_album_art} :transition "slideright"
:onhover '${EWW_CMD} update small_art_overlay=true' ; :transition "slideleft"
:onhoverlost '${EWW_CMD} update small_art_overlay=false' :reveal {!large_album_art}
(button (eventbox
:height 100
:width 100
:valign "cs"
:halign "fill"
:hexpand false
:vexpand false
:onclick '${EWW_CMD} update large_album_art=true' :onclick '${EWW_CMD} update large_album_art=true'
(overlay :onhover '${EWW_CMD} update small_art_overlay=true'
(nowplayingart :size 'small') :onhoverlost '${EWW_CMD} update small_art_overlay=false'
(label :class "art-button-overlay" (button
:height 100 :height 100
:width 100 :width 100
:visible {small_art_overlay} :valign "cs"
:text "")))) :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 (box
:class "mediadetails ${large_album_art ? 'fullwidth' : ''}" :class "mediadetails ${large_album_art ? 'fullwidth' : ''}"
:orientation "v" :orientation "v"
@ -80,26 +91,30 @@
:width 25 :width 25
"")))) ""))))
;; (nowplaying_revealer :visible false))) ;; (nowplaying_revealer :visible false)))
(eventbox (revealer
:visible {large_album_art} ; :transition "slideup"
:onhover '${EWW_CMD} update small_art_overlay=true' :transition "slidedown"
:onhoverlost '${EWW_CMD} update small_art_overlay=false' :reveal {large_album_art}
(button (eventbox
:height 100 ; :visible {large_album_art}
:width 100 :onhover '${EWW_CMD} update small_art_overlay=true'
:valign "cs" :onhoverlost '${EWW_CMD} update small_art_overlay=false'
:halign "fill" (button
:hexpand false :height 100
:vexpand false :width 100
:onclick '${EWW_CMD} update large_album_art=false' :valign "cs"
(overlay :halign "fill"
(nowplayingart :size 'big') :hexpand false
:vexpand false
:onclick '${EWW_CMD} update large_album_art=false'
(overlay
(nowplayingart :size 'big')
; :css 'margin: 20px;') ; :css 'margin: 20px;')
(label :class "art-button-overlay" (label :class "art-button-overlay"
: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