Toggle Theme

Posted by agiletortoise, Last update 10 months ago

Toggle between light and dark themes.


  • script

    // Toggle between light and dark themes
    if (app.isPro) {
    	if (app.themeMode == "dark") {
    		app.themeMode = "light";
    	else {
    		app.themeMode = "dark";
    else {
    	alert("Drafts Pro features required to use this action.")


  • After Success Nothing
    Notification None
    Log Level None
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.