Auto-fix lint errors

This commit is contained in:
J. Ryan Stinnett 2021-06-29 13:11:58 +01:00
parent 4c5720a573
commit ae0a8b8da4
625 changed files with 3170 additions and 3232 deletions

View file

@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import {_t} from "./languageHandler";
import { _t } from "./languageHandler";
export const DEFAULT_THEME = "light";
import Tinter from "./Tinter";
@ -29,7 +29,7 @@ export function enumerateThemes() {
};
const customThemes = SettingsStore.getValue("custom_themes");
const customThemeNames = {};
for (const {name} of customThemes) {
for (const { name } of customThemes) {
customThemeNames[`custom-${name}`] = name;
}
return Object.assign({}, customThemeNames, BUILTIN_THEMES);
@ -93,7 +93,7 @@ function generateCustomFontFaceCSS(faces) {
}
function setCustomThemeVars(customTheme) {
const {style} = document.body;
const { style } = document.body;
function setCSSColorVariable(name, hexColor, doPct = true) {
style.setProperty(`--${name}`, hexColor);
@ -117,7 +117,7 @@ function setCustomThemeVars(customTheme) {
}
}
if (customTheme.fonts) {
const {fonts} = customTheme;
const { fonts } = customTheme;
if (fonts.faces) {
const css = generateCustomFontFaceCSS(fonts.faces);
const style = document.createElement("style");