Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(presentation): offer the four remaining reveal.js themes
Elian Dorand38e20b58323
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/README.md b/apps/client/src/widgets/collections/presentation/reveal-themes/README.mdindex 016de685f2..0f43ad79ee 100644--- a/apps/client/src/widgets/collections/presentation/reveal-themes/README.md+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/README.md@@ -60,5 +60,7 @@ lines: a `@use 'template/settings' with (…)` block of overrides, then `@use 't`template/_system-fonts.scss` is the one file here upstream does not have. It holds `$sans` and`$condensed`, and nine themes plus `settings.scss` read their fallbacks from it.-`black-contrast` and `white-contrast` are the higher-contrast variants of `black` and `white`;-`league` and `night` round out the upstream set. None of the four is in the picker today.+`black-contrast` and `white-contrast` are the higher-contrast variants of `black` and `white`,+differing from them only in a pure black background and pure black text on light slides. All+fourteen are in the picker; `themes.ts` lists them and `BUILTIN_ATTRIBUTES` repeats the ids for+`presentation:theme`, with a spec holding the two in step.diff --git a/apps/client/src/widgets/collections/presentation/themes.ts b/apps/client/src/widgets/collections/presentation/themes.tsindex 2a8886976d..37368d59f5 100644--- a/apps/client/src/widgets/collections/presentation/themes.ts+++ b/apps/client/src/widgets/collections/presentation/themes.ts@@ -5,10 +5,18 @@ const themes = {name: "Black",loadTheme: () => import("./reveal-themes/black.scss?inline")},+ "black-contrast": {+ name: "Black Contrast",+ loadTheme: () => import("./reveal-themes/black-contrast.scss?inline")+ },white: {name: "White",loadTheme: () => import("./reveal-themes/white.scss?inline")},+ "white-contrast": {+ name: "White Contrast",+ loadTheme: () => import("./reveal-themes/white-contrast.scss?inline")+ },beige: {name: "Beige",loadTheme: () => import("./reveal-themes/beige.scss?inline")@@ -40,6 +48,14 @@ const themes = {blood: {name: "Blood",loadTheme: () => import("./reveal-themes/blood.scss?inline")+ },+ league: {+ name: "League",+ loadTheme: () => import("./reveal-themes/league.scss?inline")+ },+ night: {+ name: "Night",+ loadTheme: () => import("./reveal-themes/night.scss?inline")}} as const;diff --git a/packages/commons/src/lib/builtin_attributes.ts b/packages/commons/src/lib/builtin_attributes.tsindex 875903a2f3..1a2785355d 100644--- a/packages/commons/src/lib/builtin_attributes.ts+++ b/packages/commons/src/lib/builtin_attributes.ts@@ -303,7 +303,8 @@ const BUILTIN_ATTRIBUTES = [// Reveal.js' own stock themes, which is what the presentation bundles; anything else falls back// to `white`.{ type: "label", name: "presentation:theme", valueType: "select", hasUserValue: true, selectOptions: [- "black", "white", "beige", "serif", "simple", "solarized", "moon", "dracula", "sky", "blood"+ "black", "black-contrast", "white", "white-contrast", "beige", "serif", "simple",+ "solarized", "moon", "dracula", "sky", "blood", "league", "night"] },{ type: "label", name: "slide:background", valueType: "text", hasUserValue: true },