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

Tint color doesn't apply to message composer #708

Closed
andrej-jasso opened this issue Jan 9, 2025 · 2 comments
Closed

Tint color doesn't apply to message composer #708

andrej-jasso opened this issue Jan 9, 2025 · 2 comments

Comments

@andrej-jasso
Copy link

andrej-jasso commented Jan 9, 2025

What did you do?

I've overriden the chatClient appearance

 func start() {
        var colors = ColorPalette()
        colors.tintColor = Color.Brand.primaryLight
        var appearance = Appearance(colors: colors)

        streamChat = StreamChat(chatClient: chatClient, appearance: appearance)
        Task {
            try? await connectUser()
        }
    }

What did you expect to happen?

Message composed send and action menu button to be tinted too

What happened instead?

Most of the elements changed tint apart from a few critical ones.
The actions in the message composer didn't get tinted. They remained blue because in the code the Color.blue is hard coded in the MessageComposerView

HStack {
              if let command = command,
                 let displayInfo = command.displayInfo,
                 displayInfo.isInstant == true {
                  HStack(spacing: 0) {
                      Image(uiImage: images.smallBolt)
                      Text(displayInfo.displayName.uppercased())
                  }
                  .padding(.horizontal, 8)
                  .font(fonts.footnoteBold)
                  .frame(height: 24)
                  .background(Color.blue)
                  .foregroundColor(.white)
                  .cornerRadius(16)
              }

GetStream Environment

GetStream Chat version: 4.68.0
GetStream Chat frameworks: StreamChatSwiftUI 4.68.0
iOS version: 18
Swift version: 6.0
Xcode version: 16.1
Device: iPhone SE 2nd gen

Additional context

@nuno-vieira
Copy link
Member

Hi @andrej-jasso,

Thank you for the report. We will fix this in the next version 👍

Best,
Nuno

@laevandus
Copy link
Contributor

Hi @andrej-jasso

We have released 4.70.0 which includes a fix for this.

Thank you!
Toomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants