fixed strudel bool

This commit is contained in:
Jade (Rose) Rowland 2025-04-19 16:10:38 -04:00
parent 17e1ebeb93
commit bd08b74ebc
12 changed files with 157 additions and 38 deletions

View file

@ -11,7 +11,9 @@ export const flashField = StateField.define({
for (let e of tr.effects) {
if (e.is(setFlash)) {
if (e.value && tr.newDoc.length > 0) {
const mark = Decoration.mark({ attributes: { style: `background-color: #FFCA2880` } });
const mark = Decoration.mark({
attributes: { style: `background-color: rgba(255,255,255, .4); filter: invert(10%)` },
});
flash = Decoration.set([mark.range(0, tr.newDoc.length)]);
} else {
flash = Decoration.set([]);