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 light theme #331

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Feb 2, 2023

  • Minimal set of commits to add a basic light theme
  • No defaults are changed; this is purely an addition
  • See particular commit messages for details (presumably it makes most sense to review the commits individually here)

To keep it simply, loading a color theme from e.g. a JSON file is not part of this PR. However, the refactoring that is part of this PR should make it easy to add this kind of feature (so users don't need to recompile the application just to change colors). Of course it would also be easy to add more built-in themes.

* Allow selecting between built-in themes via "View" menu
* Add basic mechanism to apply color changes at runtime
* Add a basic light theme (needs still tweaking)
Prevents
```
 /Users/runner/work/PianoBooster/PianoBooster/src/Cfg.h:77:5: error: defaulted definition of copy assignment operator is not constexpr
    constexpr ColorTheme &operator=(const ColorTheme &other) = default;
    ^
```
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.

1 participant