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
feat(mobile/nav): basic support for note colors
Elian Doran6c6d33185020
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.cssindex 4aaad1c5c4..5c277a741e 100644--- a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css+++ b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css@@ -213,6 +213,15 @@opacity: 0.55;}+/* Colored notes: `--custom-color` is set by the theme on `.use-note-color`+ (see css_class_manager.createClassForColor). Apply it to the title/icon. */+.mobile-navigator-row.use-note-color .mobile-navigator-row-title,+.mobile-navigator-row.use-note-color .mobile-navigator-row-icon,+.mobile-navigator-current-tile.use-note-color .mobile-navigator-current-title,+.mobile-navigator-current-tile.use-note-color .mobile-navigator-current-icon {+ color: var(--custom-color, inherit);+}+.mobile-navigator-row.is-pending {cursor: progress;}diff --git a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsxindex 6bdbb45d9d..51da714a04 100644--- a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx+++ b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx@@ -230,7 +230,7 @@ export default function MobileNoteNavigator() {<div ref={bodyRef} className="mobile-navigator-body">{parentNote && (<div- className={clsx("mobile-navigator-current-tile", {+ className={clsx("mobile-navigator-current-tile", parentNote.getColorClass(), {"is-active": isCurrentActive,"is-archived": parentNote.isArchived})}