-
Notifications
You must be signed in to change notification settings - Fork 1
Enable Dark Theme Support #28
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
base: main
Are you sure you want to change the base?
Conversation
bitnimble
left a comment
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.
Thanks for the PR! pretty much lgtm - I've unfortunately just reinstalled Windows and I'm doing some travelling at the moment as well, so my reviews may be a little slower than usual. I also have to get my dev environment set up from scratch again, so I don't have the repo checked out and running locally etc, so some of my review comments will ask to just double check things on your end if I can't check it easily myself.
This PR lgtm, just have one thing to check (not critical)
src/ui/base/text/text.tsx
Outdated
| type TextStyle = 'regular' | 'title' | 'monospace' | 'code'; | ||
| type TextWeight = 'regular' | 'semibold' | 'bold' | 'extrabold' | 'black'; | ||
| type TextColor = 'black' | 'red' | 'white' | 'grey' | 'purple'; | ||
| type TextColor = 'black' | 'red' | 'white' | 'grey' | 'purple' | 'auto'; |
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.
is there anything using 'black' right now that would need to be updated to 'auto'? and can 'black' just be removed now?
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 added it at first and then kept it, although black and auto are not being used I thing may be useful to leave it for future updates. Auto is the default contrast color of the light/dark theme, and black and white can be used to force color on specific ui elements that require it
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.
yep, what I'm saying is that the current 'black' prop might be currently used somewhere with the assumption that the site is in light mode - those would need to be changed to auto now, if they exist.
if no usage of the black prop exists, then we should just remove it, since they most likely should be using auto instead, I think
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.
Agree, done!
This MR adds a simple dark theme option to the application. Changes include:
All existing functionality is preserved. No breaking changes expected. Please review the theme switcher behavior on different pages.



related issue: #25