Skip to content
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

Apply theme colors to voice recordings #679

Conversation

f3dm76
Copy link
Contributor

@f3dm76 f3dm76 commented Dec 5, 2024

🔗 Issue Link

Jira or Github issue link, if applicable.

🎯 Goal

Apply theme colors to voice recordings

🛠 Implementation

Provide a description of the implementation.

🧪 Testing

Describe the steps how this change can be tested (or why it can't be tested).

🎨 Changes

before
Screenshot 2024-12-05 at 14 05 55

after
Screenshot 2024-12-05 at 14 04 27

☑️ Checklist

  • I have signed the Stream CLA (required)
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Affected documentation updated (docusaurus, tutorial, CMS (task created)

@f3dm76 f3dm76 requested a review from a team as a code owner December 5, 2024 07:06
@@ -88,7 +89,6 @@ public struct VoiceRecordingContainerView<Factory: ViewFactory>: View {
player.subscribe(handler)
}
.padding(.all, 8)
.background(Color(colors.background))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text colour change is good, but removing the background would diverge from the default design which we can't make. Could you please exclude the background colour change and then we are good to take it in.
Thank you for contributing!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this change, it looks like my first picture, this is a bug. I removed this color because I don't think this container view should have a bg of its own, since it should just rely on a message bubble to provide the color for the both of them, no? Using a hardcoded color here is wrong however you look at it - sender and receiver might have different bg colors. In any case, if you don't like the way I fixed it, please fix it however you see fit, but right now it looks wrong and needs to be fixed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @f3dm76, we have opened a PR:689 for fixing the issue with the layout highlighted here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related PR has been merged

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hope that one includes text colors too, so I'm closing this one, thank you

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just added a few comments 👍 We will need to re-record the snapshot tests
Wrong PR

@f3dm76 f3dm76 closed this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants