mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added style.compactMode
handler
This commit is contained in:
parent
424b6bcc1f
commit
9b356584eb
@ -12,6 +12,19 @@ export default class StyleCore extends Core {
|
|||||||
currentVariant = null
|
currentVariant = null
|
||||||
|
|
||||||
events = {
|
events = {
|
||||||
|
"style.compactMode": (value = !window.app.settings.get("style.compactMode")) => {
|
||||||
|
if (value) {
|
||||||
|
return this.update({
|
||||||
|
layoutMargin: 0,
|
||||||
|
layoutPadding: 0,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.update({
|
||||||
|
layoutMargin: this.getValue("layoutMargin"),
|
||||||
|
layoutPadding: this.getValue("layoutPadding"),
|
||||||
|
})
|
||||||
|
},
|
||||||
"app.autoDarkModeToogle": (value) => {
|
"app.autoDarkModeToogle": (value) => {
|
||||||
if (value === true) {
|
if (value === true) {
|
||||||
this.handleAutoColorScheme()
|
this.handleAutoColorScheme()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user