Action

Toggle Theme

Posted by agiletortoise, Last update about 1 year ago

Toggle between light and dark themes.

Steps

  • 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.")
    }

Options

  • 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.