mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Add support for web app header and background color customization
This commit is contained in:
@@ -116,6 +116,7 @@ public final class SolidRoundedButtonComponent: Component {
|
||||
}
|
||||
|
||||
if let button = self.button {
|
||||
button.title = component.title
|
||||
button.updateTheme(component.theme)
|
||||
let height = button.updateLayout(width: availableSize.width, transition: .immediate)
|
||||
transition.setFrame(view: button, frame: CGRect(origin: CGPoint(), size: CGSize(width: availableSize.width, height: height)), completion: nil)
|
||||
|
||||
Reference in New Issue
Block a user