Skip to content

Build your personal knowledge base with Trilium Notes

appThemeClass is redundant

zadam6a67cdd5af93
diff --git a/src/routes/api/options.js b/src/routes/api/options.js
index 4a931af283..86254e78c4 100644
--- a/src/routes/api/options.js
+++ b/src/routes/api/options.js
@@ -48,11 +48,9 @@ async function getUserThemes() {
const ret = [];
for (const note of notes) {
- let value;
+ let value = note.getLabelValue('appTheme');
- if (await note.hasLabel('appThemeClass')) {
- value = await note.getLabelValue('appThemeClass');
- } else {
+ if (!value) {
value = note.title.toLowerCase().replace(/[^a-z0-9]/gi, '-');
}
diff --git a/src/services/attributes.js b/src/services/attributes.js
index 1cdfea4a6f..57825d7365 100644
--- a/src/services/attributes.js
+++ b/src/services/attributes.js
@@ -16,7 +16,6 @@ const BUILTIN_ATTRIBUTES = [
{ type: 'label', name: 'disableInclusion' },
{ type: 'label', name: 'appCss' },
{ type: 'label', name: 'appTheme' },
- { type: 'label', name: 'appThemeClass' },
{ type: 'label', name: 'hideChildrenOverview' },
{ type: 'label', name: 'hidePromotedAttributes' },
{ type: 'label', name: 'readOnly' },