Skip to content

Build your personal knowledge base with Trilium Notes

feat(theme): add description for #appThemeBase

Elian Doranb872ad0c2576
diff --git a/src/public/app/widgets/attribute_widgets/attribute_detail.js b/src/public/app/widgets/attribute_widgets/attribute_detail.js
index 10d779d67d..dc814795aa 100644
--- a/src/public/app/widgets/attribute_widgets/attribute_detail.js
+++ b/src/public/app/widgets/attribute_widgets/attribute_detail.js
@@ -201,6 +201,7 @@ const ATTR_HELP = {
"autoReadOnlyDisabled": t('attribute_detail.auto_read_only_disabled'),
"appCss": t('attribute_detail.app_css'),
"appTheme": t('attribute_detail.app_theme'),
+ "appThemeBase": t('attribute_detail.app_theme_base'),
"cssClass": t('attribute_detail.css_class'),
"iconClass": t('attribute_detail.icon_class'),
"pageSize": t('attribute_detail.page_size'),
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 62a00dda98..bfe4b584d6 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -359,6 +359,7 @@
"auto_read_only_disabled": "text/code notes can be set automatically into read mode when they are too large. You can disable this behavior on per-note basis by adding this label to the note",
"app_css": "marks CSS notes which are loaded into the Trilium application and can thus be used to modify Trilium's looks.",
"app_theme": "marks CSS notes which are full Trilium themes and are thus available in Trilium options.",
+ "app_theme_base": "set to \"next\" in order to use the TriliumNext theme as a base for a custom theme instead of the legacy one.",
"css_class": "value of this label is then added as CSS class to the node representing given note in the tree. This can be useful for advanced theming. Can be used in template notes.",
"icon_class": "value of this label is added as a CSS class to the icon on the tree which can help visually distinguish the notes in the tree. Example might be bx bx-home - icons are taken from boxicons. Can be used in template notes.",
"page_size": "number of items per page in note listing",
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index e87b2d7678..8d73af8a15 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -227,7 +227,8 @@
"workspace_inbox": "marchează locația implicită în care vor apărea noile notițe atunci când este focalizat spațiul de lucru sau un copil al acestuia",
"workspace_search_home": "notițele de căutare vor fi create sub această notiță",
"workspace_tab_background_color": "Culoare CSS ce va fi folosită în tab-urile ce aparțin spațiului de lucru",
- "workspace_template": "Această notița va apărea în lista de șabloane când se crează o nouă notiță, dar doar când spațiul de lucru în care se află notița este focalizat"
+ "workspace_template": "Această notița va apărea în lista de șabloane când se crează o nouă notiță, dar doar când spațiul de lucru în care se află notița este focalizat",
+ "app_theme_base": "setați valoarea la „next” pentru a folosi drept temă de bază „TriliumNext” în loc de cea clasică."
},
"attribute_editor": {
"add_a_new_attribute": "Adaugă un nou attribut",
diff --git a/src/services/builtin_attributes.ts b/src/services/builtin_attributes.ts
index 649647b77b..2c40204c5c 100644
--- a/src/services/builtin_attributes.ts
+++ b/src/services/builtin_attributes.ts
@@ -8,6 +8,7 @@ export default [
{ type: 'label', name: 'disableInclusion' },
{ type: 'label', name: 'appCss' },
{ type: 'label', name: 'appTheme' },
+ { type: 'label', name: 'appThemeBase' },
{ type: 'label', name: 'hidePromotedAttributes' },
{ type: 'label', name: 'readOnly' },
{ type: 'label', name: 'autoReadOnlyDisabled' },