5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 23:43:16 +08:00
wails/v3/internal/runtime/desktop/system.js
2023-08-27 15:54:01 +10:00

25 lines
519 B
JavaScript

/*
_ __ _ __
| | / /___ _(_) /____
| | /| / / __ `/ / / ___/
| |/ |/ / /_/ / / (__ )
|__/|__/\__,_/_/_/____/
The electron alternative for Go
(c) Lea Anthony 2019-present
*/
/* jshint esversion: 9 */
import {newRuntimeCallerWithID, objectNames} from "./runtime";
let call = newRuntimeCallerWithID(objectNames.System);
let SystemIsDarkMode = 0;
/**
* Determines if the system is currently using dark mode
* @returns {Promise<boolean>}
*/
export function IsDarkMode() {
return call(SystemIsDarkMode);
}