Skip to content
Discussion options

You must be logged in to vote

Coming back to this very late - sorry about that. In case you (or anyone searching) still want it:

A QuickAdd macro user script can do this. Create a Macro choice, attach this script as its command, and toggle the command (lightning bolt) on the choice so it's one click away in the command palette or on a hotkey.

module.exports = async (params) => {
	const { app, quickAddApi } = params;
	const customCss = app.customCss;

	const themes = ["", ...Object.keys(customCss.themes ?? {})];
	const picked = await quickAddApi.suggester(
		(theme) => (theme === "" ? "Default" : theme),
		themes
	);

	customCss.setTheme(picked);
};

That opens a suggester over your installed themes (plus the default) a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tyf2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants