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
fix(collection/presentation): default theme not shown correctly in ribbon
Elian Doran60cee1f7dc66
diff --git a/apps/client/src/widgets/ribbon/collection-properties-config.ts b/apps/client/src/widgets/ribbon/collection-properties-config.tsindex 0416c98fcf..fd3d6251e1 100644--- a/apps/client/src/widgets/ribbon/collection-properties-config.ts+++ b/apps/client/src/widgets/ribbon/collection-properties-config.ts@@ -5,7 +5,7 @@ import NoteContextAwareWidget from "../note_context_aware_widget";import { DEFAULT_MAP_LAYER_NAME, MAP_LAYERS, type MapLayer } from "../collections/geomap/map_layer";import { ViewTypeOptions } from "../collections/interface";import { FilterLabelsByType } from "@triliumnext/commons";-import { getPresentationThemes } from "../collections/presentation/themes";+import { DEFAULT_THEME, getPresentationThemes } from "../collections/presentation/themes";interface BookConfig {properties: BookProperty[];@@ -167,6 +167,7 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {label: "Theme",type: "combobox",bindToLabel: "presentation:theme",+ defaultValue: DEFAULT_THEME,options: getPresentationThemes().map(theme => ({value: theme.id,label: theme.name