Fix sticker creator

This commit is contained in:
Josh Perez
2022-01-06 18:34:53 -05:00
committed by GitHub
parent 577d9a41cc
commit e741b7820a

View File

@@ -253,8 +253,7 @@ const getThemeSetting = createSetting('themeSetting');
async function resolveTheme() {
const theme = (await getThemeSetting.getValue()) || 'system';
if (process.platform === 'darwin' && theme === 'system') {
const { theme: nativeTheme } = SignalContext.nativeThemeListener;
return nativeTheme.shouldUseDarkColors ? 'dark' : 'light';
return SignalContext.nativeThemeListener.getSystemTheme();
}
return theme;
}