mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-06 08:40:25 +08:00
23 lines
453 B
JavaScript
23 lines
453 B
JavaScript
/*
|
|
_ __ _ __
|
|
| | / /___ _(_) /____
|
|
| | /| / / __ `/ / / ___/
|
|
| |/ |/ / /_/ / / (__ )
|
|
|__/|__/\__,_/_/_/____/
|
|
The electron alternative for Go
|
|
(c) Lea Anthony 2019-present
|
|
*/
|
|
|
|
/* jshint esversion: 9 */
|
|
|
|
import {newRuntimeCaller} from "./runtime";
|
|
|
|
let call = newRuntimeCaller("system");
|
|
|
|
/**
|
|
* Determines if the system is currently using dark mode
|
|
* @returns {Promise<boolean>}
|
|
*/
|
|
export function IsDarkMode() {
|
|
return call("IsDarkMode");
|
|
} |