Skip to content
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

Add system theme for Windows and Mac Electron builds #2882

Merged
merged 6 commits into from
May 1, 2021

Conversation

sandymcfadden
Copy link
Contributor

@sandymcfadden sandymcfadden commented Apr 30, 2021

Fix

Picked up from PR #2135

Currently in our Electron builds we don't offer a system theme that responds to the OSs color preference but is available in the web app.

This enables it for both Windows and Mac builds. There appears to be a bug in Electron or Chromium on Linux that the app doesn't respond properly to changing the color preferences so it still won't work there. Possibly this will get resolved in Electron 13 due to come out May 25, 2021.

It also updates so that the system menu for Windows updates to be choice of theme in Simplenote itself. So if you specifically choose Light the menu will be light, same for dark, overriding the system color preference.

This semi addresses issues #2134 and #1799 as they will both be resolved for Mac and Windows, but still not working on the Linux builds.

Related issues:

Windows Screen Recording
https://user-images.githubusercontent.com/1326294/116714765-76f26c00-a9ac-11eb-979c-c08ad8aeebf5.mov

Test

Needs testing on Mac, Windows, and Linux

  1. Open Simplenote
  2. Ensure on Windows and Mac under the view menu and theme there is a System option
  3. Ensure on Linux there is no System option showing for the theme.
  4. Ensure option shows under Settings > Display as well for both Windows and Mac, but not Linux
  5. Choose System theme on Windows or Mac.
  6. Change color preference on the operating system.
  7. Ensure Simplenote updates to match.
  8. Set either light or dark theme.
  9. Change color preferences on the operating system.
  10. Ensure Simplenote does not change and stays with your app settings.
  11. On Linux ensure you can still switch between Light and Dark themes properly.

Release

  • Added system theme for Mac and Windows Electron apps.

@sandymcfadden sandymcfadden self-assigned this Apr 30, 2021
@sandymcfadden sandymcfadden added this to the Future milestone Apr 30, 2021
@sandymcfadden sandymcfadden requested a review from a team April 30, 2021 14:35
@sandymcfadden sandymcfadden marked this pull request as ready for review April 30, 2021 15:08
@sandymcfadden sandymcfadden changed the title TEST: Add system theme for Electron builds Add system theme for Electron builds Apr 30, 2021
@sandymcfadden sandymcfadden changed the title Add system theme for Electron builds Add system theme for Windows and Mac Electron builds Apr 30, 2021
@sandymcfadden sandymcfadden modified the milestones: Future, 2.11.0 Apr 30, 2021
Copy link
Member

@codebykat codebykat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Working great on OSX. Didn't test the Windows build.

desktop/menus/view-menu.js Outdated Show resolved Hide resolved
@sandymcfadden sandymcfadden merged commit 54ca503 into develop May 1, 2021
@sandymcfadden sandymcfadden deleted the add/system-theme-electron-builds branch May 1, 2021 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants