Created
February 2, 2018 02:47
-
-
Save dannyweilai/b1a1b2e721bb57e3ec9527d3d5107af5 to your computer and use it in GitHub Desktop.
Midnight - get theme id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(NSClassFromString("DLMidnightTheme")) { | |
const current = DLMidnightTheme.currentTheme() | |
const themeID = current.themeID() | |
log("Current theme ID: " + themeID) | |
// if themeID == "original" means it is Sketch default theme | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment