Skip to content

msglist: Add end-of-feed whitespace; use background color from Figma #402

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

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

chrisbobbe
Copy link
Collaborator

Screenshots coming soon. (Both sets of screenshots were made with #399 in the branch, for no particular reason except to avoid showing an unrelated bug that might be distracting.)

Fixes: #400
Fixes: #401

@chrisbobbe
Copy link
Collaborator Author

Before After
EB3933F3-75D9-4631-8C6D-29FCBDA06F6A EB4FBC96-C35D-4EDE-9343-EF1FB6A8CEC8
CF2C3507-6AFC-4965-AE52-E06A12C0ED6D 55862325-213A-458F-B639-CC40B77B04A0
6C629682-7612-4083-A8D8-A6BA77D339AC FE79E61B-07FC-4F05-B07A-DB65C7159FEF

@chrisbobbe
Copy link
Collaborator Author

Or to see both the top and bottom of a message list at the same time (when there are very few messages):

Before After
21AB313B-BFB7-440B-AD73-1C4EE7E6EBD8 B6708EE5-E5A2-495F-82C3-F445CCDCDD74

@chrisbobbe chrisbobbe force-pushed the pr-msglist-background branch from 31c89ec to 0ce88f0 Compare November 20, 2023 19:11
Instead of having its caller make the SizedBox.

This way, the whitespace will be naturally included when we give the
whole message list's white background color to the individual
MessageItems, coming next.
This lets `colorScheme.background` (which we matched to the Figma in
21dbae1) come through in the area with the "Mark X messages as
read" button, following a Figma frame:
  https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=147%3A9133&mode=dev
(There's a different Figma frame that shows a stream-specific color
there; more on that in the next commit.)

The background color (`colorScheme.background`) will now also come
through in these areas:

- in the area with the "No earlier messages" text, when scrolled to
  the earliest messages
- in the new blank space we added after the most recent message,
  earlier in this series of commits.

Fixes: zulip#401
@gnprice gnprice force-pushed the pr-msglist-background branch from 0ce88f0 to 3b95070 Compare November 20, 2023 20:49
@gnprice
Copy link
Member

gnprice commented Nov 20, 2023

Thanks for these fixes! Looks good — merging.

@terpimost, Chris has a question for you in the last commit:
3b95070d3
Happy to make further adjustments depending on your answer, but merging this now because I'm pretty sure this is an improvement in any case.

@gnprice gnprice merged commit 3b95070 into zulip:main Nov 20, 2023
@chrisbobbe chrisbobbe deleted the pr-msglist-background branch November 20, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants