Skip to content

Commit

Permalink
Support obsidian 1.0 themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Eskild Steensen committed Nov 12, 2022
1 parent 8c4437c commit 975d16c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "digitalgarden",
"name": "Digital Garden",
"version": "2.23.1",
"version": "2.23.2",
"minAppVersion": "0.12.0",
"description": "Publish your notes to a digital garden for others to enjoy.",
"author": "Ole Eskild Steensen",
Expand Down
2 changes: 1 addition & 1 deletion src/SettingView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default class SettingView {
dd.addOption('{"name": "default", "modes": ["dark"]}', "Default")
const sortedThemes = themesListResponse.data.sort((a: { name: string; }, b: { name: any; }) => a.name.localeCompare(b.name));
sortedThemes.map((x: any) => {
dd.addOption(JSON.stringify({ ...x, cssUrl: `https://raw.githubusercontent.com/${x.repo}/${x.branch || 'HEAD'}/obsidian.css` }), x.name);
dd.addOption(JSON.stringify({ ...x, cssUrl: `https://raw.githubusercontent.com/${x.repo}/${x.branch || 'HEAD'}/${x.legacy ? 'obsidian.css': 'theme.css'}` }), x.name);
dd.setValue(this.settings.theme)
dd.onChange(async (val: any) => {
this.settings.theme = val;
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"2.23.2": "0.12.0",
"2.23.1": "0.12.0",
"2.23.0": "0.12.0",
"2.22.0": "0.12.0",
Expand Down

0 comments on commit 975d16c

Please sign in to comment.