mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[Feature/1149] Dark mode: functions for manually switching theme (#1291)
* [Feature/1149] Dark mode: functions for manually switching theme
This commit is contained in:
committed by
Lea Anthony
parent
584f88f727
commit
7dd3f96915
@@ -47,6 +47,18 @@ type DevWebServer struct {
|
||||
devServerAddr string
|
||||
}
|
||||
|
||||
func (d *DevWebServer) WindowSetSystemDefaultTheme() {
|
||||
d.desktopFrontend.WindowSetSystemDefaultTheme()
|
||||
}
|
||||
|
||||
func (d *DevWebServer) WindowSetLightTheme() {
|
||||
d.desktopFrontend.WindowSetLightTheme()
|
||||
}
|
||||
|
||||
func (d *DevWebServer) WindowSetDarkTheme() {
|
||||
d.desktopFrontend.WindowSetDarkTheme()
|
||||
}
|
||||
|
||||
func (d *DevWebServer) Run(ctx context.Context) error {
|
||||
d.ctx = ctx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user