diff --git a/desktop/.gitignore b/desktop/.gitignore new file mode 100644 index 0000000..d8b83df --- /dev/null +++ b/desktop/.gitignore @@ -0,0 +1 @@ +package-lock.json diff --git a/desktop/sources/scripts/library.js b/desktop/sources/scripts/library.js index f917dce..50f3944 100644 --- a/desktop/sources/scripts/library.js +++ b/desktop/sources/scripts/library.js @@ -181,6 +181,11 @@ function Library (ronin) { return h[k] } + this.theme = (variable, el = document.documentElement) => { + // ex. styleprop('--f_high') to get css variable value + return getComputedStyle(el).getPropertyValue(variable) + } + // Math this.add = (...args) => {