-
Notifications
You must be signed in to change notification settings - Fork 0
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
App Themes #344
App Themes #344
Conversation
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.
I'm looking forward to seeing this hit master!
Most of the comments I had were around changing the naming scheme of the action and adding a constant THEMES
map to reference instead of using string literals.
One thing I noticed as well is that there is nothing in the current code that tells the top level app component to redraw itself. Since this component is outside of the redux
connected components, triggering a state change will not automatically trigger a redraw. You'll have to use this.forceUpdate()
(reference is here) to redraw the app component.
@pr1sm think I'm ready for a second review (hopefully final!) |
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.
Nice, this looks great! Just had a couple of quick suggestions.
One thing I noticed while testing is that the react-select
components are a hair slower than the rest of the frontend at updating. Not sure if that's a quick fix or not, but I don't think it's important enough to be a blocker, we can make a separate issue to improve the performance of theme switching
Any ideas @pr1sm? |
I'm not sure what the best way is to send the theme over. Maybe using a query string on the captcha url? A script could look for this and make adjustments to the css. There's probably a better solution out there, but that's just the first thing off the top of my head |
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.
Just a couple of small changes.
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.
Nice, looks great!
merging... |
name: App Themes
about: Implements dark mode / light mode
Changes
themes.scss
defined variables to be used during scaffoldingfonts.scss
defined to be used for differing operating systemsTODO
react-select
stylingChecks
fixes #327