diff --git a/jslib b/jslib index e89f295e..0aae22fc 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit e89f295e1d59040bf48ba599a900e3b42497008e +Subproject commit 0aae22fc00dc1d9ec96480d2262c5f35d0fd0d67 diff --git a/src/app/services.module.ts b/src/app/services.module.ts index ec353387..e846a1bd 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -15,6 +15,8 @@ import { ElectronRendererSecureStorageService } from 'jslib/electron/services/el import { ElectronStorageService } from 'jslib/electron/services/electronStorage.service'; import { isDev } from 'jslib/electron/utils'; +import { DeviceType } from 'jslib/enums/deviceType'; + import { I18nService } from '../services/i18n.service'; import { AuthGuardService } from 'jslib/angular/services/auth-guard.service'; @@ -140,7 +142,8 @@ export function initFactory(): Function { htmlEl.classList.add('locale_' + i18nService.translationLocale); let theme = await storageService.get(ConstantsService.themeKey); if (theme == null) { - theme = 'light'; + theme = platformUtilsService.getDevice() === DeviceType.MacOsDesktop && + remote.systemPreferences.isDarkMode() ? 'dark' : 'light'; } htmlEl.classList.add('theme_' + theme); stateService.save(ConstantsService.disableFaviconKey,