Add gitignore. Add theme op to library to get theme variables.
This commit is contained in:
parent
a247c4a8a6
commit
5fb97a072b
1
desktop/.gitignore
vendored
Normal file
1
desktop/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
package-lock.json
|
@ -181,6 +181,11 @@ function Library (ronin) {
|
|||||||
return h[k]
|
return h[k]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.theme = (variable, el = document.documentElement) => {
|
||||||
|
// ex. styleprop('--f_high') to get css variable value
|
||||||
|
return getComputedStyle(el).getPropertyValue(variable)
|
||||||
|
}
|
||||||
|
|
||||||
// Math
|
// Math
|
||||||
|
|
||||||
this.add = (...args) => {
|
this.add = (...args) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user