-
Notifications
You must be signed in to change notification settings - Fork 258
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
msglist: Use distinct background colors for DM messages. #1305
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks! Small comments below.
Also, the commit message seems longer than it needs to be; it repeats details that are already clear from the Fixes #681
line and the changes made. Also the paragraphs should be wrapped as specified in Zulip's commit style guide.
f2707ac
to
112baba
Compare
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.
Thanks! LGTM except for one new idea I had below.
104d569
to
852c509
Compare
236ea51
to
c3d37a9
Compare
Made the changes. Do tell me if there is anything else |
c3d37a9
to
b051c59
Compare
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.
Thanks! Small comments below. Also, this needs tests that check the message and date-separator background colors for the two types of messages.
Thanks @E-m-i-n-e-n-c-e for your work so far on this, and @chrisbobbe for the reviews! Given that this issue is for the M6 Post-launch milestone, and that this PR doesn't yet have tests so still has significant work ahead before we can merge it, let's put it on hold for now until the launch is ready — see announcement. The bug fix in that second commit would be good to include sooner, though. @E-m-i-n-e-n-c-e would you send a quick PR with just that change? (It's fine to leave that without a test — that line is in highly mechanical code which we should ultimately assure the correctness of by generating it, not testing it.) Then we can get that merged. |
b051c59
to
6c415dc
Compare
Fixed a bug in MessageListTheme.lerp() where dmRecipientHeaderBg was using streamMessageBgDefault instead of dmRecipientHeaderBg for interpolation.
6c415dc
to
b7fb9f9
Compare
I have reordered the commits. Will add the tests in the next push |
This commit modifies DmMessage and its DateSeparator to use a different background color from StreamMessage. Fixes zulip#681.
b7fb9f9
to
31151be
Compare
I have added the tests as well. Please take another look at the changes |
After you send that separate PR, please link to it here so it's easy to find. |
|
This PR modifies DmMessage and its DateSeparator to use a different background color from StreamMessage. This matches the web app's behavior where DM messages have a distinct background color.
Added new theme colors to MessageListTheme(These colors match the web app version)
Light theme: hsl(45deg 20% 96%)
Dark theme: hsl(46deg 7% 16%)
Fixes #681.
Edit: Modified
smoke test for light/dark/lerped
to test both message types. It now creates two example messages, one DM and one StreamMessage, and checks their background colors.Screenshots: