mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added getValue
to methods
This commit is contained in:
parent
6bf6b8f9a4
commit
424b6bcc1f
@ -123,6 +123,20 @@ export default class StyleCore extends Core {
|
|||||||
return app.settings.get("themeVariant")
|
return app.settings.get("themeVariant")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getValue = (key) => {
|
||||||
|
if (typeof key === "undefined") {
|
||||||
|
return {
|
||||||
|
...staticValues,
|
||||||
|
...storagedModifications
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const storagedModifications = this.getStoragedModifications()
|
||||||
|
const staticValues = this.theme.staticVars
|
||||||
|
|
||||||
|
return storagedModifications[key] || staticValues[key]
|
||||||
|
}
|
||||||
|
|
||||||
setVariant = (variationKey) => {
|
setVariant = (variationKey) => {
|
||||||
return app.settings.set("themeVariant", variationKey)
|
return app.settings.set("themeVariant", variationKey)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user