New backup 2025-04-27 00:00:02

This commit is contained in:
Penelope Gwen 2025-04-27 00:00:02 -07:00
parent a1064ce1a1
commit b7260e795d
2 changed files with 16 additions and 9 deletions

View file

@ -172,11 +172,16 @@ tooltip{
.notes { .notes {
background-color: rgba($color0,0.5); background-color: rgba($color0,0.5);
padding: 10px; padding: 10px;
button { box {
background-color: rgba($color9,0.5); background-color: rgba($color9,0.5);
border-radius: 6px; border-radius: 6px;
padding: 4px 8px; padding: 4px 8px;
margin: 4px; margin: 4px;
.timestamp {
font-size: 0.8em;
margin-top: 6px;
color: rgba($color7,1)
}
} }
} }
.shortcuts { .shortcuts {

View file

@ -15,14 +15,16 @@
"Notes" "Notes"
(for note in json (for note in json
(button :onclick "kate -n '${note.filepath}'" (button :onclick "kate -n '${note.filepath}'"
(label (box
:xalign 0 :orientation "v"
:justify "left" (label
:wrap false :xalign 0
:text "${replace(note.filepath,"${get_env("HOME")}/Documents/Notes/",'')} :wrap false
:text "${replace(note.filepath,"${get_env("HOME")}/Documents/Notes/",'')}")
${formattime("${note.date}","%F %R")}") (label
)) :xalign 0.5
:class "timestamp"
:text "${formattime("${note.date}","%F %R")}"))))
; (button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'} ; (button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'}
; :class {(device.connected == "yes") ? "active" : ""} ; :class {(device.connected == "yes") ? "active" : ""}
; "${device.icon}")) )) ; "${device.icon}")) ))