mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 14:32:52 -05:00
fix light mode ipc
This commit is contained in:
@@ -253,10 +253,7 @@ Item {
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
const newLightMode = !SessionData.isLightMode
|
||||
SessionData.setLightMode(newLightMode)
|
||||
Theme.isLightMode = newLightMode
|
||||
PortalService.setLightMode(newLightMode)
|
||||
Theme.toggleLightMode()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -677,10 +677,8 @@ Item {
|
||||
description: "Use light theme instead of dark theme"
|
||||
checked: SessionData.isLightMode
|
||||
onToggled: checked => {
|
||||
SessionData.setLightMode(checked)
|
||||
Theme.isLightMode = checked
|
||||
PortalService.setLightMode(checked)
|
||||
}
|
||||
Theme.setLightMode(checked)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user