Use IsDarkMode state store

This commit is contained in:
Lea Anthony
2020-10-04 11:50:05 +11:00
parent 5ef200f21c
commit 1c6578e6ef

View File

@@ -30,7 +30,7 @@ function OnThemeChange(callback) {
* @returns {Promise}
*/
function DarkModeEnabled() {
return window.wails._.SystemCall("IsDarkMode");
return window.wails.System.IsDarkMode.get();
}
module.exports = {