Skip to content
Snippets Groups Projects
Commit 4b25475b authored by HJ's avatar HJ :fire:
Browse files

setColors -> applyTheme. For sanity. Also disabled export because nobody uses it

and should not use anyway.
parent fe2fe092
Branches
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ const getTextColor = function (bg, text, preserve) {
return text
}
const setColors = (input, commit) => {
const applyTheme = (input, commit) => {
const { rules, theme } = generatePreset(input)
const head = document.head
const body = document.body
......@@ -516,7 +516,7 @@ const setPreset = (val, commit) => {
// load config -> set preset -> wait for styles.json to load ->
// load persisted state -> set colors -> styles.json loaded -> set colors
if (!window.themeLoaded) {
setColors(data, commit)
applyTheme(data, commit)
}
})
}
......@@ -524,7 +524,6 @@ const setPreset = (val, commit) => {
export {
setStyle,
setPreset,
setColors,
getTextColor,
generateColors,
generateRadii,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment