Closed olof-nord closed 4 months ago
Started test build 91883
Build 91883 successful To test this build, install it from the testing repository:
flatpak install --user https://dl.flathub.org/build-repo/74574/com.tutanota.Tutanota.flatpakref
See https://gitlab.com/olof-nord/flatpak-electron-dark-mode-demo for a more in-depth explanation as well as a separate proof of concept of a Flatpak app built with electron and electron-builder.
Closing this PR as I understand this is more of an internal project - feel free to use this code in the future if you want to address this problem.
The Electron/Wayland support is not supporting switching the window bar from light to dark without huge hacks (https://github.com/flathub/com.spotify.Client/blob/master/set-dark-theme-variant.py).
I propose to instead remove the ozone platform hint for now until the Chromium / Electron Wayland support is more mature. This runs Electron with X11.
This is unfortunately the case for many Electron based Flatpaks at the moment, see for example the note here
This closes https://github.com/flathub/com.tutanota.Tutanota/issues/151