-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix change the status bar color #44048
fix change the status bar color #44048
Conversation
@alitoshmatov Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@shawnborton @alitoshmatov Can you confirm if it looks good. |
Looks good to me! |
I assume it's unrelated that the troubleshoot illustration no longer has a background color? Ignore me if that's expected right now! |
Oh gosh how did I miss that. We absolutely want to keep the illustration background color, we just want to change the color of the text in the very top status bar. |
@@ -136,8 +136,8 @@ const lightTheme = { | |||
statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT, | |||
}, | |||
[SCREENS.SETTINGS.TROUBLESHOOT]: { | |||
backgroundColor: colors.blue700, | |||
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT, | |||
backgroundColor: colors.productLight100, |
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.
Sorry, we actually do want to keep the existing backgroundColor here, cc @dannymcclain
@@ -136,7 +136,7 @@ const darkTheme = { | |||
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT, | |||
}, | |||
[SCREENS.SETTINGS.TROUBLESHOOT]: { | |||
backgroundColor: colors.blue700, | |||
backgroundColor: colors.productDark100, |
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.
Let's please revert this back to what it was
Nice catch |
@tienifr I think we should apply background color to illustration as we are doing in other places: we should apply App/src/components/LottieAnimations/index.tsx Lines 70 to 74 in 3e1c0b8
And remove it from here:
Then we can keep App/src/styles/theme/themes/light.ts Line 139 in 6ef72be
Thus we can keep background color in illustration and fix status bar color: |
|
Looks good to me! |
src/styles/theme/themes/light.ts
Outdated
@@ -137,7 +137,7 @@ const lightTheme = { | |||
}, | |||
[SCREENS.SETTINGS.TROUBLESHOOT]: { | |||
backgroundColor: colors.blue700, |
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.
@tienifr Shouldn't this also be changed to colors.productLight100
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.
Why do we need to do that? I think we do not use value this value anymore, so we do not need to change 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.
This is still causing blue statusbar in mweb safari, isn't 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.
Ah, that makes sense. I updated the PR to fix it.
@alitoshmatov I updated PR and added all videos in light and dark mode. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: Native![Simulator Screenshot - iPhone 15 Plus - 2024-06-28 at 23 34 24](https://github.com/Expensify/App/assets/59907218/a9e2495d-cca3-4b78-a08a-8b963ce4a054)iOS: mWeb Safari![Simulator Screenshot - iPhone 15 Plus - 2024-06-24 at 20 47 21](https://github.com/Expensify/App/assets/59907218/a264e83e-7cdc-4fd8-9a55-50971698f739)MacOS: Chrome / SafariMacOS: Desktop |
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.
LGTM!
✋ 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/danieldoglas in version: 9.0.4-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
Details
Fixed Issues
$ #38594 (comment)
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Screen.Recording.2024-06-20.at.05.01.55.mov
Android: mWeb Chrome
Screen.Recording.2024-06-28.at.18.47.35.mov
Screen.Recording.2024-06-28.at.18.48.25.mov
iOS: Native
Screen.Recording.2024-06-28.at.18.44.28.mov
Screen.Recording.2024-06-28.at.18.45.31.mov
iOS: mWeb Safari
Screen.Recording.2024-06-28.at.18.46.56.mov
Screen.Recording.2024-06-28.at.18.51.25.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-28.at.18.54.55.mov
Screen.Recording.2024-06-28.at.18.54.32.mov
MacOS: Desktop
Screen.Recording.2024-06-28.at.19.00.41.mov
Screen.Recording.2024-06-28.at.19.00.23.mov