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

This commit is contained in:
Penelope Gwen 2025-07-18 13:45:02 -07:00
parent 373efcd7fa
commit 67c545d031
3 changed files with 8 additions and 5 deletions

View file

@ -310,6 +310,9 @@ $home-widget-border-color: rgba($color5,1);
color: $home-widget-subtitle-color; color: $home-widget-subtitle-color;
} }
} }
.revealer-title {
background-color: $home-widget-border-color;
}
.notes { .notes {
background-color: $home-widget-bg-color; background-color: $home-widget-bg-color;
color: $home-button-fg-color; color: $home-button-fg-color;

View file

@ -5,17 +5,17 @@
(defvar reveal_notes true) (defvar reveal_notes true)
(defwidget notes_revealer [] (defwidget notes_revealer []
(revealer-on-press (revealer-on-press
; :orientation "v" :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
:revealvar reveal_notes :revealvar reveal_notes
:revealvar-name "reveal_notes" :revealvar-name "reveal_notes"
(label :width 300 (label :width 300
:text "press") :class "reavealer-title"
:text "Notes ${reveal_notes ? '' : ''}")
; {reveal_notes ? "" : ""} ; {reveal_notes ? "" : ""}
(notes :json {jq(notes_list,'.notes')}))) (notes :json {jq(notes_list,'.notes')})))
(defwidget notes [json] (defwidget notes [json]
(box (box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
:class "notes" :class "notes"
:orientation "v" :orientation "v"
:halign "baseline" :halign "baseline"

View file

@ -1,13 +1,13 @@
(defwidget revealer-on-press [revealvar revealvar-name ?class ?duration ?transition] (defwidget revealer-on-press [revealvar revealvar-name ?class ?duration ?transition]
(box (box
:class "${class} revealer-on-press" :class "${class} revealer-on-press"
:orientation "v" :space-evenly true
:space-evenly false
(eventbox (eventbox
:onclick '${EWW_CMD} update ${revealvar-name}=${revealvar ? "false" : "true"}' :onclick '${EWW_CMD} update ${revealvar-name}=${revealvar ? "false" : "true"}'
; :onhover "${EWW_CMD} update ${revealvar-name}=true" ; :onhover "${EWW_CMD} update ${revealvar-name}=true"
; :onhoverlost "${EWW_CMD} update ${revealvar-name}=false" ; :onhoverlost "${EWW_CMD} update ${revealvar-name}=false"
(box (box
:orientation "vertical"
:space-evenly false :space-evenly false
(children :nth 0) (children :nth 0)
(revealer (revealer