-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feature/theme switcher #525
Conversation
enikonemeth
commented
Dec 22, 2019
•
edited
Loading
edited
- Remove repository change from the usermenu
- Refactor to avoid/remove theme service
|
Codecov Report
@@ Coverage Diff @@
## develop #525 +/- ##
========================================
Coverage 91.36% 91.36%
========================================
Files 192 192
Lines 5209 5209
Branches 1302 1302
========================================
Hits 4759 4759
Misses 450 450
Continue to review full report at Codecov.
|
There is strange behavior when I change theme the drawer items gets reinitialized and there are multiple getActions request sent. Please check if you can avoid that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thing I would love to see in this pr is
const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)')
this code somewhere.
https://web.dev/prefers-color-scheme/
It would be awesome if we would support this bydesign. 😊
@herflis Are you okay with this?
In use-drawer-item we are watching the settings (line 168-189) variable
In ResponsiveContextProvider the personalSettings is reactive so when it changes it will effect that we should update the drawer items as well. To avoid this, we can remove the settings variable from the watches list in use-drawer-items, but it will cause lint warning... |
In the original issue light theme was what I should use:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌑