-
Notifications
You must be signed in to change notification settings - Fork 9
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
Dark Mode + Centralized Theme #4
base: main
Are you sure you want to change the base?
Conversation
@@ -32,7 +33,6 @@ async function loadHtmlFileForAndroid() { | |||
|
|||
const styles = StyleSheet.create({ | |||
container: { | |||
backgroundColor: "#fff", |
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.
afaik this is important for the loading screen, but can be made dynamic based on the mode
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 think this is inherited from the underlying view but if you can show me a screenshot of what you mean i can take a closer look
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.
@nikgraf lots of good feedback 😇 let me walk through the light mode again make sure things shake out well. how are we feeling about the outstanding items? |
I'm really happy with the progress! Regarding the HTML the changes basically have to go to
I wonder if the web view on iOS and Android both support https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme I wouldn't worry about overwriting the default preference. I mean really cool things to have, but better to keep PRs small, ship and iterate often :) |
f175aad
to
cf44a8d
Compare
First pass at a universal theme provider. This removes all references components make to a colors object in favor of a
useCurrentTheme()
to responds with a light or dark theme depending on the users preferences. Because we're using Expo this also addsreact-native-appearance
to handle resolving the user's device setting.Outstanding Items