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

🐛 changed getter darkTheme to always return darkTheme and added getter lightTheme #17

Merged
merged 2 commits into from Apr 5, 2021

Conversation

bernhardfrenking
Copy link
Contributor

@bernhardfrenking bernhardfrenking commented Apr 4, 2021

Description of the Change

adding an additional getter lightTheme and changing the getter darkTheme to always returning the dark theme instead of returning the current theme.

Alternate Designs

instead of the additional getter, the getter theme could alway return the lightTheme

Why Should This Be In Core?

mode independend getter for the modes are necesseray, if you need it for example in a theme settings screen

Benefits

usability improved in case of theme setting screens

Possible Drawbacks

not known

Verification Process

What process did you follow to verify that your change has the desired effects?

  • manual test with example
    manually compared the themes from getter lightTheme and darkTheme

Applicable Issues

not known

PULL_REQUEST_TEMPLATE.md Outdated Show resolved Hide resolved
@BirjuVachhani BirjuVachhani added bug Something isn't working bugfix For PRs that fixes bugs and removed bug Something isn't working labels Apr 5, 2021
Copy link
Owner

@BirjuVachhani BirjuVachhani left a comment

Choose a reason for hiding this comment

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

LGTM.

@BirjuVachhani BirjuVachhani merged commit 887bb19 into BirjuVachhani:main Apr 5, 2021
@BirjuVachhani
Copy link
Owner

@bernhardfrenking Thanks for the PR. It will be available in the next release. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix For PRs that fixes bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get theme and get darkTheme returns the same theme dependend on mode
2 participants