-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nativeTheme
is undefined
#466
Comments
Having the same issue here with Electron 7.1.8 on Windows 10 x64. The weird thing is that when I run the Electron app locally, it works, but when running tests (Spectron 9.0.0), it doesn't and
@jarrodek were you able to resolve your issue in the meantime? |
Update: |
Just to provide a quick update here: GitHub Desktop uses a mock service for Electron remote, there the |
Electron 7 introduced new API called
nativeTheme
, howeverapp.electron.nativeTheme
is undefined. It should have properties likethemeSource
,shouldUseDarkColors
, and others.When I am printing to the console
app.electron
it looks good but it does not havenativeTheme
property.Electron version: 7.0.0
Spectron version: 9.0.0
The text was updated successfully, but these errors were encountered: