mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +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")
|
||||
}
|
||||
|
||||
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) => {
|
||||
return app.settings.set("themeVariant", variationKey)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user