mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +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 { DEFAULT_MAP_LAYER_NAME, MAP_LAYERS, type MapLayer } from "../collections/geomap/map_layer";
|
||||||
import { ViewTypeOptions } from "../collections/interface";
|
import { ViewTypeOptions } from "../collections/interface";
|
||||||
import { FilterLabelsByType } from "@triliumnext/commons";
|
import { FilterLabelsByType } from "@triliumnext/commons";
|
||||||
import { getPresentationThemes } from "../collections/presentation/themes";
|
import { DEFAULT_THEME, getPresentationThemes } from "../collections/presentation/themes";
|
||||||
|
|
||||||
interface BookConfig {
|
interface BookConfig {
|
||||||
properties: BookProperty[];
|
properties: BookProperty[];
|
||||||
@ -167,6 +167,7 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {
|
|||||||
label: "Theme",
|
label: "Theme",
|
||||||
type: "combobox",
|
type: "combobox",
|
||||||
bindToLabel: "presentation:theme",
|
bindToLabel: "presentation:theme",
|
||||||
|
defaultValue: DEFAULT_THEME,
|
||||||
options: getPresentationThemes().map(theme => ({
|
options: getPresentationThemes().map(theme => ({
|
||||||
value: theme.id,
|
value: theme.id,
|
||||||
label: theme.name
|
label: theme.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user