-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Theme switching: Dynamic StatusBar and scroll bars #32063
Theme switching: Dynamic StatusBar and scroll bars #32063
Conversation
…into @chrispader/theme-switching-status-and-scroll-bar
…witching-status-and-scroll-bar
…r/theme-switching-status-and-scroll-bar
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.
We have some lint errors.
Co-authored-by: Fedi Rajhi <fedirjh@gmail.com>
Co-authored-by: Fedi Rajhi <fedirjh@gmail.com>
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.
Looks good to me.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.7-0 🚀
|
@chrispader @grgia QA team is seeing the console error when adding snippet |
@kbecciv apologies, that should not be included in QA steps. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
|
statusBarStyle = screenTheme.statusBarStyle; | ||
} | ||
|
||
StatusBar.setBackgroundColor(currentScreenBackgroundColor, true); |
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.
@chrispader I notice that you removed the animated transition between status bar background colors that was present in NavigationRoot.tsx
. Was there any discussion around that choice? Can you add it back here please?
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.
Yes, sorry my mistake. Just added a PR here: #33200
}, | ||
[SCREENS.SETTINGS.WORKSPACES]: { | ||
backgroundColor: colors.pink800, | ||
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT, |
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.
This was wrong color for light theme. #38304
@grgia
Details
Currently the
StatusBar
and scrollbars across the whole app are not changing based on the theme. This PR adapts theCustomStatusBar
component and adds aCustomScrollbarWrapper
component.Fixed Issues
$ #31915
PROPOSAL:
Tests
Expensify.js
Offline tests
Same as in Tests.
QA Steps
Same as in Tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop