-
Notifications
You must be signed in to change notification settings - Fork 979
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 locked screen - design review changes #15927
Conversation
Jenkins BuildsClick to see older builds (21)
|
@@ -100,6 +101,7 @@ | |||
(cond-> {:style (style/input colors-by-status small? @multiple-lines?) | |||
:accessibility-label :input | |||
:placeholder-text-color (:placeholder colors-by-status) | |||
:keyboard-appearance (colors/theme-colors :light :dark override-theme) |
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.
hi, :light
and :dark
are not colors, Please use (if (colors/dark?) :dark :light)
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.
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.
or put in quo2.theme
?
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.
cc: @flexsurfer
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 have seen the function being used rarely for things other than color, like here:
:shadow-opacity (colors/theme-colors 0.1 0.7) |
Despite the name, the function returns whatever we pass in the props based on the theme/override-theme. But I think renaming/making a new function can make more sense.
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.
What about a function/macro called if-light-theme
?
Not the best name, but I've seen in this PR it'd be used a lot. IMO using theme-colors
for returning not color values is not a good idea.
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 agree with @ulisesmac and @Parveshdhull, it's not a good idea to use this function even if it works here. It's intention is to set colors. Let's create some other helper as suggested, perhaps something more generic in name 👍
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 agree with @J-Son89 and others. And I also like @Parveshdhull's suggestion for a utility function outside the colors
ns to get any value based on a theme.
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 agree with you guys. I will create a generic utility function and update the PR.
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.
@Parveshdhull @ulisesmac @J-Son89 @ilmotta I have added a theme/theme-value
function. Basically, it's the same as colors/theme-colors
function with a different name. Let me know what you think of this implementation.
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 👍 thanks for your PR!
I left some small comments
@@ -100,6 +101,7 @@ | |||
(cond-> {:style (style/input colors-by-status small? @multiple-lines?) | |||
:accessibility-label :input | |||
:placeholder-text-color (:placeholder colors-by-status) | |||
:keyboard-appearance (colors/theme-colors :light :dark override-theme) |
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.
What about a function/macro called if-light-theme
?
Not the best name, but I've seen in this PR it'd be used a lot. IMO using theme-colors
for returning not color values is not a good idea.
72150ab
to
4fe323f
Compare
@ulisesmac I have updated the PR with all your suggestions. |
src/quo2/theme.cljs
Outdated
([light-value dark-value override-theme] | ||
(let [theme (or override-theme (get-theme))] | ||
(if (= theme :light) light-value dark-value)))) |
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.
Tiny one: just missing the newline character on line 24.
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.
Done. Missed configuring that in my new editor.
f59cfe8
to
e6022d8
Compare
94% of end-end tests have passed
Failed tests (2)Click to expandClass TestCommunityMultipleDeviceMerged:
Passed tests (30)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
|
Hi, @ajayesivan integration tests failed https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-15927/6/consoleText. Could you check it, please? |
1c83096
to
4706824
Compare
@VladimrLitvinenko I ran a |
ace127f
to
c993e4b
Compare
c993e4b
to
771d497
Compare
@ajayesivan Thanks for the PR. No issues from my side. Ready to be merged |
@@ -178,7 +180,8 @@ | |||
sign-in-enabled? (rf/sub [:sign-in-enabled?]) | |||
profile-picture (:uri (first (:images multiaccount)))] | |||
[rn/keyboard-avoiding-view | |||
{:style style/login-container} | |||
{:style style/login-container | |||
:keyboardVerticalOffset (- (safe-area/get-bottom))} |
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.
@smohamedjavid Here
Partial fix for #15788
Figma: https://www.figma.com/file/o4qG1bnFyuyFOvHQVGgeFY/Onboarding-for-Mobile?type=design&node-id=2941-331293&t=vV2J6OGE4Ebma1GS-4
Fixes
Related Design review comments: https://www.figma.com/file/Tf5nfkYvpbnNCo4rKLK7lS/Feedback-for-Mobile?type=design&node-id=1946-147125&t=veHPm94UUhGk04v3-4
Areas to test
status: ready