Files
animated_wallpaper/config.js
T

55 lines
2.2 KiB
JavaScript

/* Application configuration
*
* debug - Show debug panel (0/1)
*
* theme - Color palette. Pick one of the keys defined in window.THEMES
* below. To add a new theme, drop a new *.css file in the same
* directory and add an entry to window.THEMES.
*
* units - Measurement units for the weather widget.
* 'metric' (°C, km/h) or 'imperial' (°F, mph)
*
* language - UI language code. Add a new language by extending
* window.TRANSLATIONS in i18n.js. English ('en') is the base;
* if a key is missing in the current language, English is used.
*
* timeFormat - Format string for the digital clock, using ISO-8601-ish
* tokens. Any character that is not a token is treated as a
* literal (including whitespace).
*
* YYYY 4-digit year (2026)
* MM month 01-12 (10)
* DD day 01-31 (07)
* HH hour 00-23 (24h) (14)
* hh hour 01-12 (12h) (02)
* a AM / PM (PM)
* mm minute 00-59 (35)
* ss second 00-59 (22)
* sss millisecond 000-999 (456)
*
* Date-only forms: YYYY, YYYY-MM, YYYY-MM-DD
* Date-time forms: above + T + HH:mm, HH:mm:ss, HH:mm:ss.sss
* Any other character is a literal (incl. spaces).
*
* Examples:
* 'HH:mm:ss' -> 14:35:22
* 'hh:mm:ss a' -> 02:35:22 PM
* 'YYYY-MM-DD' -> 2026-10-07
* 'YYYY-MM-DDTHH:mm:ss' -> 2026-10-07T14:35:22
*/
window.CONFIG = {
debug: 1,
theme: 'ash',
units: 'metric',
language: 'en',
timeFormat: 'HH:mm:ss'
};
// List of available themes. The key is the theme id (used in config.theme),
// the value is the CSS file name. Add a new theme by adding a new entry here
// and dropping the corresponding CSS file in the same directory.
window.THEMES = {
'ash': 'ash.css',
'gruvbox': 'gruvbox.css',
'nord': 'nord.css'
};