mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 19:01:09 -07:00
Use IsDarkMode state store
This commit is contained in:
@@ -30,7 +30,7 @@ function OnThemeChange(callback) {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
function DarkModeEnabled() {
|
||||
return window.wails._.SystemCall("IsDarkMode");
|
||||
return window.wails.System.IsDarkMode.get();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user