[UI] Automatic theme switching
It's been discussed a few times (https://1password.community/discussion/128215/dark-style-preference, https://1password.community/discussion/139290/dark-mode-doesnt-work-for-flatpak), but matching the system theme should be technologically possible now without hacks. Other Electron based applications have been able to automatically detect and change between light and dark themes for a bit now. This may be due to finally using newer versions of Electron, which I scrounged up via the following search:
bash
strings <path-to-app> | grep -e 'Electron/' -e 'Electron v2'
Results
| App | Stack | ATS |
|---|---|---|
| 1Password | Chrome/114.0.5735.289 Electron/25.8.1 | ⛔* |
| Slack | Chrome/116.0.5845.190 Electron/26.2.4 | ⚠️** |
| Element Desktop | Chrome/116.0.5845.190 Electron/26.2.4 | ✅ |
* 1Password provides an option for matching the system but it does not work.
** Slack does not expose an option for matching the system theme, but it shares the same base as Element Desktop which does function just fine.
I'm not sure if it would help, but https://releases.electronjs.org/release/v25.8.4 released a few weeks ago and includes an enhancement to detect system theme preference via the XDG settings portal.
It would be really great to finally have this functional for those of us who prefer to switch between themes during day-to-night and night-to-day transitions 😄
1Password Version: 8.10.16
Extension Version: Not Provided
OS Version: Fedora 38
Browser: Not Provided
