From 4eb97c5fc73378da6f4e9be95e5a13c8e2bc43f8 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Wed, 29 Oct 2025 11:16:30 +0100 Subject: [PATCH] mismatched theme check Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- lib/tray.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/tray.ts b/lib/tray.ts index 3a903c1..b991d47 100644 --- a/lib/tray.ts +++ b/lib/tray.ts @@ -42,6 +42,19 @@ async function resolveTrayIconForTheme() { | 'dark' | 'unknown' + const currentWindow = getCurrentWindow() + const windowTheme = await currentWindow.theme() + + if (windowTheme !== detectedTheme) { + Sentry.captureException(new Error('Window theme mismatch'), { + extra: { + detectedTheme, + windowTheme, + os: platform(), + }, + }) + } + if (detectedTheme === 'unknown') { const answer = await ask( 'Could not determine your system theme, please select the correct one below',