mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -529,14 +529,13 @@ public final class MessageInputActionButtonComponent: Component {
|
||||
self.backgroundView = backgroundView
|
||||
}
|
||||
|
||||
var tintColor = UIColor(rgb: 0x4d4f5c, alpha: 0.6)
|
||||
var tintKind: GlassBackgroundView.TintColor.Kind = .panel
|
||||
var tintColor = UIColor(rgb: 0x25272e, alpha: 0.72)
|
||||
let tintKind: GlassBackgroundView.TintColor.Kind = .custom
|
||||
if case .send = component.mode {
|
||||
tintColor = UIColor(rgb: 0x029dff)
|
||||
tintKind = .custom
|
||||
}
|
||||
let buttonSize = CGSize(width: 40.0, height: 40.0)
|
||||
backgroundView.update(size: buttonSize, cornerRadius: buttonSize.height / 2.0, isDark: false, tintColor: .init(kind: tintKind, color: tintColor), transition: transition)
|
||||
backgroundView.update(size: buttonSize, cornerRadius: buttonSize.height / 2.0, isDark: true, tintColor: .init(kind: tintKind, color: tintColor), transition: transition)
|
||||
backgroundView.frame = CGRect(origin: .zero, size: buttonSize)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user