[Feature/1149] Dark mode: functions for manually switching theme (#1291)

* [Feature/1149] Dark mode: functions for manually switching theme
This commit is contained in:
Sebastian Bauer
2022-04-01 08:21:37 +11:00
committed by Lea Anthony
parent 584f88f727
commit 7dd3f96915
12 changed files with 159 additions and 0 deletions
+27
View File
@@ -43,6 +43,33 @@ JS Signature: `WindowReload()`
Performs a "reload" (Reloads index.html)
### WindowSetSystemDefaultTheme
Go Signature: `WindowSetSystemDefaultTheme(ctx context.Context)`
JS Signature: `WindowSetSystemDefaultTheme()`
Windows only.
Sets window theme to system default (dark/light).
### WindowSetLightTheme
Go Signature: `WindowSetLightTheme(ctx context.Context)`
JS Signature: `WindowSetLightTheme()`
Windows only.
Sets window theme to light.
### WindowSetDarkTheme
Go Signature: `WindowSetDarkTheme(ctx context.Context)`
JS Signature: `WindowSetDarkTheme()`
Windows only.
Sets window theme to dark.
### WindowShow
Go Signature: `WindowShow(ctx context.Context)`