Improve readability of RegularMessageItem widget #41

Merged
emersion merged 4 commits from bl1nk/goguma:push-pltrntyxmmtp into master 2025-10-05 22:34:33 +02:00
Contributor

Hey there,

first contribution here, please let me know if I missed something.

We talked about it in the IRC channel but to summarize: With this PR I would like to update the look of message bubbles when not using the compact style. It improves readability and aligns Goguma a bit with other chat apps out there.

The changes in this PR are:

  • Change message bubble colors. Use the primary theme color for the background of outgoing messages. Use a light color for the background of incoming messages. Reuse the former bubble color as the color of sender nicknames.
  • Remove the nickname on outgoing messages.
  • Limit message bubble widths to 80% of the screen width at most. Most other chat apps do this as well do keep the left-right alignment of incoming/outgoing messages visible.

Check the screenshots for a before and after in light and dark modes:

Before After
light-before light-after
dark-before dark-after

Happy to make any changes based on review feedback.

Hey there, first contribution here, please let me know if I missed something. We talked about it in the IRC channel but to summarize: With this PR I would like to update the look of message bubbles when not using the compact style. It improves readability and aligns Goguma a bit with other chat apps out there. The changes in this PR are: - Change message bubble colors. Use the primary theme color for the background of outgoing messages. Use a light color for the background of incoming messages. Reuse the former bubble color as the color of sender nicknames. - Remove the nickname on outgoing messages. - Limit message bubble widths to 80% of the screen width at most. Most other chat apps do this as well do keep the left-right alignment of incoming/outgoing messages visible. Check the screenshots for a before and after in light and dark modes: | Before | After | |---------|---------| | ![light-before](/attachments/e860168d-5179-4e0f-bfc3-0e73739f20c5) | ![light-after](/attachments/f8e34cfd-f1c1-4126-91db-6752d8b71cbd) | | ![dark-before](/attachments/51f8dce3-299a-474a-aa41-1649995766c1) | ![dark-after](/attachments/41cac295-9ea9-471f-93a9-c067cdbda367) | Happy to make any changes based on review feedback.
bl1nk force-pushed push-pltrntyxmmtp from 888f8511f9
Some checks reported errors
builds.sr.ht/android Job failed
to 236d1f6e21
Some checks reported errors
builds.sr.ht/android Job failed
2025-10-04 16:26:32 +02:00
Compare
bl1nk force-pushed push-pltrntyxmmtp from 236d1f6e21
Some checks reported errors
builds.sr.ht/android Job failed
to 9ec16a967c
Some checks reported errors
builds.sr.ht/android Job failed
2025-10-04 16:47:24 +02:00
Compare
Set textColor using colorScheme
Some checks reported errors
builds.sr.ht/android Job failed
05a5f3c195
Uses onPrimaryContainer for the text color of outgoing messages, fitting the background color of primaryContainer.

Uses onSurface for incoming messages, fitting the background color of surfaceContainer.
emersion approved these changes 2025-10-05 22:32:30 +02:00
emersion left a comment
Owner

Very nice! Thanks so much for working on this!

Very nice! Thanks so much for working on this!
emersion merged commit 05a5f3c195 into master 2025-10-05 22:34:33 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
emersion/goguma!41
No description provided.