Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/note tree item tinting: optimize
Adorian Dorande9314a271a3
diff --git a/apps/client/src/stylesheets/theme-dark.css b/apps/client/src/stylesheets/theme-dark.cssindex 01bd125ec1..0a622d97d1 100644--- a/apps/client/src/stylesheets/theme-dark.css+++ b/apps/client/src/stylesheets/theme-dark.css@@ -82,7 +82,7 @@ body ::-webkit-calendar-picker-indicator {filter: invert(1);}-#left-pane span.fancytree-node {+#left-pane .fancytree-node.tinted {--custom-color: var(--dark-theme-custom-color);}diff --git a/apps/client/src/stylesheets/theme-light.css b/apps/client/src/stylesheets/theme-light.cssindex 55203712e4..a07b9799f1 100644--- a/apps/client/src/stylesheets/theme-light.css+++ b/apps/client/src/stylesheets/theme-light.css@@ -82,6 +82,6 @@ html {--native-titlebar-background: #ffffff00;}-#left-pane span.fancytree-node {+#left-pane .fancytree-node.tinted {--custom-color: var(--light-theme-custom-color);}\ No newline at end of filediff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex a584fcab1c..8b15e76764 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -268,7 +268,7 @@* Dark color scheme tweaks*/-#left-pane span.fancytree-node {+#left-pane .fancytree-node.tinted {--custom-color: var(--dark-theme-custom-color);/* The background color of the active item in the note tree.diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex 47d81f7a8f..30f4e1c3a0 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -263,7 +263,7 @@--ck-editor-toolbar-dropdown-button-open-background: #0000000f;}-#left-pane span.fancytree-node {+#left-pane .fancytree-node.tinted {--custom-color: var(--light-theme-custom-color);/* The background color of the active item in the note tree.diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.tsindex f4f600929a..f1c2ca7363 100644--- a/apps/client/src/widgets/note_tree.ts+++ b/apps/client/src/widgets/note_tree.ts@@ -905,7 +905,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {const colorClass = note.getColorClass();if (colorClass) {- extraClasses.push(colorClass);+ extraClasses.push(...["tinted", colorClass]);}return extraClasses.join(" ");