VoiceMessagePlaybackView: Update background view color property name.

This commit is contained in:
SBiOSoftWhare
2022-02-01 14:49:17 +01:00
parent c9e1f37b89
commit a5d8310e9e
3 changed files with 6 additions and 4 deletions
@@ -62,7 +62,9 @@ class VoiceMessagePlaybackView: UIView, NibLoadable, Themable {
return _waveformView
}
var backgroundViewColor: UIColor? {
/// Define the `backgroundView.backgroundColor`.
/// By setting this value the theme color will not be applyied to `backgroundView` in `update(theme: Theme)` method.
var customBackgroundViewColor: UIColor? {
didSet {
if let theme = currentTheme {
self.update(theme: theme)
@@ -138,7 +140,7 @@ class VoiceMessagePlaybackView: UIView, NibLoadable, Themable {
playButton.backgroundColor = theme.colors.background
playButton.tintColor = theme.colors.secondaryContent
let backgroundViewColor = self.backgroundViewColor ?? theme.colors.quinaryContent
let backgroundViewColor = self.customBackgroundViewColor ?? theme.colors.quinaryContent
backgroundView.backgroundColor = backgroundViewColor
_waveformView.primaryLineColor = theme.colors.quarterlyContent