From 60cee1f7dc664945515039bb29f5186541b3b1dd Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 16 Oct 2025 12:15:31 +0300 Subject: [PATCH] fix(collection/presentation): default theme not shown correctly in ribbon --- apps/client/src/widgets/ribbon/collection-properties-config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/collection-properties-config.ts b/apps/client/src/widgets/ribbon/collection-properties-config.ts index 0416c98fc..fd3d6251e 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 = { label: "Theme", type: "combobox", bindToLabel: "presentation:theme", + defaultValue: DEFAULT_THEME, options: getPresentationThemes().map(theme => ({ value: theme.id, label: theme.name