Various improvements

This commit is contained in:
Ilya Laktyushin
2025-09-27 01:27:56 +04:00
parent b8bf673c5f
commit 4657ac752d
27 changed files with 462 additions and 160 deletions

View File

@@ -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)
}