You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: np.ThemeChooser/CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# np.ThemeChooser Changelog
2
2
3
+
## [1.10.0] 2026-03-26 @dwertheimer
4
+
5
+
- Add **Refresh Current Theme** command: re-applies the active theme (`Editor.setTheme` with the current file) to reload theme CSS after editing a theme
6
+
-**setTheme** / frontmatter theme change: apply with `Editor.setTheme(filename)` directly after lookup (avoid routing through `chooseTheme`) so the theme does not snap back
7
+
3
8
## [1.9.1] 2025-02-20 @dwertheimer
4
9
5
10
- Add support for Eduard's hex colors in frontmatter (do not quote the hex color even though it's illegal YAML)
Copy file name to clipboardExpand all lines: np.ThemeChooser/plugin.json
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@
4
4
"noteplan.minAppVersion": "3.7.2",
5
5
"plugin.id": "np.ThemeChooser",
6
6
"plugin.name": "🎨 Theme Chooser",
7
-
"plugin.version": "1.9.1",
8
-
"plugin.lastUpdateInfo": "1.9.1 Add support for Eduard's hex colors in frontmatter.\nPreviously: Add color picker to choose colors and write to frontmatter",
7
+
"plugin.version": "1.10.1",
8
+
"plugin.lastUpdateInfo": "1.10.1 Add /Reload Page with Current Theme to re-apply the active theme and reload CSS.\nPreviously: Add /Refresh Current Theme to re-apply the active theme and reload CSS.",
9
9
"plugin.description": "Choose from your favorite themes",
10
10
"plugin.author": "dwertheimer",
11
11
"plugin.dependencies": [],
@@ -39,6 +39,15 @@
39
39
"theme name"
40
40
]
41
41
},
42
+
{
43
+
"name": "Reload Page with Current Theme",
44
+
"description": "Re-apply the active theme to reload theme CSS (e.g. after editing the theme file)",
45
+
"jsFunction": "refreshCurrentTheme",
46
+
"alias": [
47
+
"rthm", "refresh"
48
+
],
49
+
"arguments": []
50
+
},
42
51
{
43
52
"name": "Choose HTML Color for Background",
44
53
"description": "Choose a color and either save to the clipboard or write to frontmatter",
Copy file name to clipboardExpand all lines: np.ThemeChooser/src/index.js
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
// @flow
2
2
3
-
export{chooseTheme,setDefaultLightDarkTheme,toggleTheme,copyCurrentTheme,changeThemeFromFrontmatter,addThemeFrontmatter}from'./NPThemeChooser'// add one of these for every command specifified in plugin.json (the function could be in any file as long as it's exported)
3
+
export{
4
+
chooseTheme,
5
+
setDefaultLightDarkTheme,
6
+
toggleTheme,
7
+
copyCurrentTheme,
8
+
changeThemeFromFrontmatter,
9
+
addThemeFrontmatter,
10
+
refreshCurrentTheme,
11
+
}from'./NPThemeChooser'// add one of these for every command specifified in plugin.json (the function could be in any file as long as it's exported)
0 commit comments