This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
forked from andreknieriem/photobooth
-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
theme.js
26 lines (24 loc) · 1.35 KB
/
theme.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const style = document.documentElement.style;
style.setProperty('--primary-color', config.colors.primary);
style.setProperty('--secondary-color', config.colors.secondary);
style.setProperty('--highlight-color', config.colors.highlight);
style.setProperty('--font-color', config.colors.font);
style.setProperty('--button-font-color', config.colors.button_font);
style.setProperty('--start-font-color', config.colors.start_font);
style.setProperty('--countdown-color', config.colors.countdown);
style.setProperty('--background-countdown-color', config.colors.background_countdown);
style.setProperty('--cheese-color', config.colors.cheese);
style.setProperty('--panel-color', config.colors.panel);
style.setProperty('--hover-panel-color', config.colors.hover_panel);
style.setProperty('--border-color', config.colors.border);
style.setProperty('--box-color', config.colors.box);
style.setProperty('--gallery-button-color', config.colors.gallery_button);
style.setProperty('--background-default', config.background.defaults);
style.setProperty('--background-admin', config.background.admin);
style.setProperty('--background-chroma', config.background.chroma);
style.setProperty('--background-url', config.preview.url);
style.setProperty('--fontSize', config.ui.font_size);
style.setProperty('--preview-rotation', config.preview.rotation);
$(function () {
$('#wrapper').show();
});