Skip to content

Commit

Permalink
Fix grapish color for disabled input
Browse files Browse the repository at this point in the history
Issue introduced in #1183
  • Loading branch information
gugalo committed Dec 16, 2024
1 parent 057d576 commit bd938d5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions widgetssdk/src/main/java/com/glia/widgets/chat/ChatView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -650,21 +650,21 @@ internal class ChatView(context: Context, attrs: AttributeSet?, defStyleAttr: In
theme.systemNegativeColor?.let(::getColorCompat)
?.also(binding.scErrorLabel::setBackgroundColor)

theme.baseShadeColor?.let(::getColorCompat)
val disabledInputColor = theme.baseShadeColor?.let(::getColorCompat)
?.also(binding.chatDivider::setBackgroundColor)
?.also(binding.scBottomBannerDivider::setBackgroundColor)

theme.baseDarkColor?.let(::getColorCompat)
?.also{ binding.chatEditText.applyTextColor(it, theme.baseShadeColor) }
?.also{ binding.chatEditText.applyTextColor(it, disabledInputColor) }
theme.baseNormalColor?.let(::getColorCompat)
?.also{ binding.chatEditText.applyHintColor(it, theme.baseShadeColor) }
?.also{ binding.addAttachmentButton.applyImageColor(it, theme.baseShadeColor) }
?.also{ binding.chatEditText.applyHintColor(it, disabledInputColor) }
?.also{ binding.addAttachmentButton.applyImageColor(it, disabledInputColor) }
?.also(binding.scBottomBannerLabel::setTextColor)
theme.systemAgentBubbleColor?.let(::getColorCompat)?.also(binding.scBottomBannerLabel::setBackgroundColor)

// other
theme.sendMessageButtonTintColor?.let(::getColorCompat)
?.also { binding.sendButton.applyImageColor(it, theme.baseShadeColor) }
?.also { binding.sendButton.applyImageColor(it, disabledInputColor) }
theme.gliaChatBackgroundColor?.let(::getColorCompat)?.also(::setBackgroundColor)
binding.gvaQuickRepliesLayout.updateTheme(theme)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd938d5

Please sign in to comment.