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
style/note icon: apply the note custom color on the icon
Adorian Doran76c16f3a622c
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex 248efee756..87ead0e47c 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -325,3 +325,8 @@ body .todo-list input[type="checkbox"]:not(:checked):before {.use-note-color {--custom-color: var(--dark-theme-custom-color);}++.note-split.with-hue {+ --note-icon-custom-background-color: hsl(var(--custom-color-hue), 8%, 29.4%);+ --note-icon-custom-color: hsl(var(--custom-color-hue), 89%, 78%);+}\ No newline at end of filediff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex d1364ebd48..d24d002cce 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -296,3 +296,8 @@--modal-border-color: hsl(var(--custom-color-hue), 33%, 41%);--promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 40%, 88%);}++.note-split.with-hue {+ --note-icon-custom-background-color: hsl(var(--custom-color-hue), 50%, 86.7%);+ --note-icon-custom-color: hsl(var(--custom-color-hue), 36%, 23%);+}\ No newline at end of filediff --git a/apps/client/src/widgets/note_icon.css b/apps/client/src/widgets/note_icon.cssindex 7168daf5bf..7bcb794a43 100644--- a/apps/client/src/widgets/note_icon.css+++ b/apps/client/src/widgets/note_icon.css@@ -90,7 +90,7 @@ body.experimental-feature-new-layout {&::before {position: relative;z-index: 1;- color: var(--note-icon-button-color);+ color: var(--note-icon-custom-color, var(--note-icon-button-color));}/* The background circle */@@ -99,11 +99,11 @@ body.experimental-feature-new-layout {position: absolute;inset: 0;border-radius: 50%;- background: var(--note-icon-button-background-color);+ background: var(--note-icon-custom-background-color, var(--note-icon-button-background-color));}&:focus-visible {- outline: 2px solid var(--note-icon-button-color);+ outline: 2px solid var(--note-icon-custom-color, var(--note-icon-button-color));}&:hover:not(.bx-empty:disabled)::after {