style/text selection: refactor, apply custom color tint over the note title selection

This commit is contained in:
Adorian Doran 2025-12-26 11:45:42 +02:00
parent 8b630c6e2e
commit 6d80323a76
3 changed files with 3 additions and 2 deletions

View File

@ -349,5 +349,5 @@ body .todo-list input[type="checkbox"]:not(:checked):before {
.note-split.with-hue *::selection,
.quick-edit-dialog-wrapper.with-hue *::selection {
background: hsl(var(--custom-color-hue), 49.2%, 35%);
--selection-background-color: hsl(var(--custom-color-hue), 49.2%, 35%);
}

View File

@ -320,5 +320,5 @@
.note-split.with-hue *::selection,
.quick-edit-dialog-wrapper.with-hue *::selection {
background: hsl(var(--custom-color-hue), 60%, 90%);
--selection-background-color: hsl(var(--custom-color-hue), 60%, 90%);
}

View File

@ -21,6 +21,7 @@ div.note-title-widget {
&::selection {
color: var(--main-text-color);
background: var(--selection-background-color);
}
}