From ee1ffb512ae4a1bed6e89ea77e351e7737a3e255 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 18 Jul 2025 22:30:01 -0700 Subject: [PATCH] New backup 2025-07-18 22:30:01 --- de/home/.config/eww/eww.scss | 7 ++++- .../eww/modules/home/nowplayingart.yuck | 30 +++---------------- 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index a78a582..e017b5f 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -320,7 +320,12 @@ $home-widget-border-hover-color: rgba($color5,0.3); color: $color5; } .nowplayingart { -// margin: 20px 0px 20px 20px; + &.small { + margin: 20px 0px 20px 20px; + } + &.big { + margin: 20px; + } // margin-right: 0px; border: 1px solid $home-widget-border-color; border-radius: $home-widget-border-radius; diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index 478b6ac..5b114e3 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -34,7 +34,7 @@ :vexpand false :onclick '${EWW_CMD} update large_album_art=true' (overlay - (nowplayingart :css 'margin: 20px 0px 20px 20px;') + (nowplayingart :size 'small') (label :class "art-button-overlay" :height 100 :width 100 @@ -93,7 +93,7 @@ :vexpand false :onclick '${EWW_CMD} update large_album_art=false' (overlay - (nowplayingart) + (nowplayingart :size 'big') ; :css 'margin: 20px;') (label :class "art-button-overlay" :height 100 @@ -101,31 +101,9 @@ :visible {small_art_overlay} :text "")))))) -;(defwidget nowplaying_revealer [revealvar revealvar-name] -(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 "center" - :halign "fill" - :hexpand false - :vexpand false - :onclick '${EWW_CMD} update large_album_art=${large_album_art ? "false" : "true"}' - (overlay - (nowplayingart) - (label :class "art-button-overlay" - :height 100 - :width 100 - :visible {small_art_overlay} - :text ""))))) - -(defwidget nowplayingart [] +(defwidget nowplayingart [size] (box - :class "nowplayingart" + :class "nowplayingart ${size}" :hexpand false ; :width 100 ; :height 100