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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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;
}