From 4b25475b5766580d7645bb5e8fcb7f229ed6c620 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 11 Dec 2018 01:39:18 +0300 Subject: [PATCH] setColors -> applyTheme. For sanity. Also disabled export because nobody uses it and should not use anyway. --- src/services/style_setter/style_setter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 783a693aa4..5d9887328e 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -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,