diff --git a/client/app.go b/client/app.go index cd960f8..66e2ce1 100644 --- a/client/app.go +++ b/client/app.go @@ -142,8 +142,10 @@ type App struct { unsyncedOff int lastSyncTime time.Time isStreamingSc bool + scIntervalMs int streamScStop chan struct{} isStreamingCam bool + camIntervalMs int streamCamStop chan struct{} statusMsg string expectingLogin bool @@ -229,8 +231,16 @@ func NewApp() *App { } } +func (a *App) forceLightTheme() { + if a.ctx == nil { + return + } + runtime.WindowSetLightTheme(a.ctx) +} + func (a *App) startup(ctx context.Context) { a.ctx = ctx + a.forceLightTheme() a.loadSession() a.loadStats() @@ -644,6 +654,7 @@ func (a *App) startLocalServer() { a.mu.Lock() a.localBrowserActive = true a.mu.Unlock() + a.forceLightTheme() go func() { guard.SuppressFor(3 * time.Second) runtime.WindowExecJS(a.ctx, fmt.Sprintf("window.location.href = %q", raw)) @@ -662,8 +673,10 @@ const examViewHTML = `
+