Fix sticker creator
This commit is contained in:
parent
577d9a41cc
commit
e741b7820a
|
@ -253,8 +253,7 @@ const getThemeSetting = createSetting('themeSetting');
|
||||||
async function resolveTheme() {
|
async function resolveTheme() {
|
||||||
const theme = (await getThemeSetting.getValue()) || 'system';
|
const theme = (await getThemeSetting.getValue()) || 'system';
|
||||||
if (process.platform === 'darwin' && theme === 'system') {
|
if (process.platform === 'darwin' && theme === 'system') {
|
||||||
const { theme: nativeTheme } = SignalContext.nativeThemeListener;
|
return SignalContext.nativeThemeListener.getSystemTheme();
|
||||||
return nativeTheme.shouldUseDarkColors ? 'dark' : 'light';
|
|
||||||
}
|
}
|
||||||
return theme;
|
return theme;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue