question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Electron 4 and vibrancy

See original GitHub issue

In reference to #667, release 2.24.0’s electron version now detects the system-wise dark mode status. It can be seen in the sidebar. Selecting Caprine’s light mode while using system-wide dark mode makes the sidebar look wrong. It’s because internally I’ve set the sidebar vibrancy mode to sidebar, which I think changes based on the state of the system dark mode.

With that being said, I plan on making a new pull request which fixes the issue. We have two options here:

  1. Stick with the old behavior: app-level dark mode can be set independently of the system-level dark mode. This means that I should avoid using sidebar vibrancy profile, and revert to using light

  2. Adapt to the system-level dark mode: This means that we will remove the option to set the app-level dark mode.

I’d like to know your thoughts regarding the direction you want the app to move towards.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, Jan 7, 2019

I considered doing:

Theme:
- System
- Light
- Dark

But then it’s harder to add a toggle shortcut, and the System would only be there on macOS.

So maybe this would be better?

Follow System Appearance
Dark Mode

Follow System Appearance would only be shown on macOS. If Follow System Appearance is checked, then the Dark Mode menu item would be disabled.

0reactions
sindresorhuscommented, Jan 7, 2019

Ah yes, because the menu is initiated statically. Seems we can do it dynamically though. See the example here: https://github.com/electron/electron/issues/11891

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-vibrancy - npm
This module is intended to give an Electron BrowserWindow blur on its behind. Electron does not support 'blur behind' from a transparent window ......
Read more >
Why Electron Vibrancy Effect Not Working At All - Stack Overflow
I used vibrancy in my last project with previous electron versions in same machine and those were work properly but know it does...
Read more >
Windows10-electron-vibrancy NPM | npm.io
Windows 10 Electron Vibrancy. This module is intended to give an Electron BrowserWindow blur on its behind. Electron does not support 'blur behind'...
Read more >
Browserfenster | Electron
The BrowserWindow class exposes various ways to modify the look and behavior of your app's windows. For more details, see the Window Customization...
Read more >
electron-vibrancy - UNPKG
The CDN for electron-vibrancy. ... 4, "description": "Enable blurring the back of your transparent BrowserWindow using this simple module.",.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found