Skip to content

Build your personal knowledge base with Trilium Notes

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

Adorian Doran6d80323a7664
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index d7865d757b..80acfe2e0a 100644
--- a/apps/client/src/stylesheets/theme-next-dark.css
+++ b/apps/client/src/stylesheets/theme-next-dark.css
@@ -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%);
}
\ No newline at end of file
diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css
index fb39917611..1e50200d9a 100644
--- a/apps/client/src/stylesheets/theme-next-light.css
+++ b/apps/client/src/stylesheets/theme-next-light.css
@@ -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%);
}
\ No newline at end of file
diff --git a/apps/client/src/widgets/note_title.css b/apps/client/src/widgets/note_title.css
index fca994e5bc..ebc6ec33eb 100644
--- a/apps/client/src/widgets/note_title.css
+++ b/apps/client/src/widgets/note_title.css
@@ -21,6 +21,7 @@ div.note-title-widget {
&::selection {
color: var(--main-text-color);
+ background: var(--selection-background-color);
}
}