mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
fix(collection/presentation): default theme not shown correctly in ribbon
This commit is contained in:
parent
7c2c89d4e2
commit
60cee1f7dc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user