1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

maverick comments

This commit is contained in:
Andrew Simachev 2022-07-01 10:38:12 +03:00
parent 4a5c51be89
commit ad082b68ec
2 changed files with 2 additions and 0 deletions

View file

@ -79,6 +79,7 @@ function waitForLibraryAndCreateWindows () {
});
};
// MacOs 12.2 (M1): doesn't fire on manual theme switch
nativeTheme.on('updated', () => {
MenuManager.updateTrayIcon();
WindowManager.updateTheme();

View file

@ -32,6 +32,7 @@ class Util {
console.log(text);
};
// MacOs 12.2 (M1): always returns false regardless current color theme
isDarkTheme () {
return nativeTheme.shouldUseDarkColors || nativeTheme.shouldUseHighContrastColors || nativeTheme.shouldUseInvertedColorScheme;
};