Skip to content
Snippets Groups Projects
Commit 1a511e7a authored by Alireza Toghyiani's avatar Alireza Toghyiani
Browse files

Fix welcome view button paddings for large text

Change-Id: I2f34dd87083dd465e9aaf9870c9a5f012bab633e
parent d133173f
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,11 @@ class WelcomeViewController: UIViewController, StoryboardBased, ViewModelBased { ...@@ -59,6 +59,11 @@ class WelcomeViewController: UIViewController, StoryboardBased, ViewModelBased {
} }
for button in [joinJamiButton, linkAccountButton, importDeviceButton, importBackupButton, advancedFeaturesButton, connectJamiAcountManagerButton, configureSIPButton] { for button in [joinJamiButton, linkAccountButton, importDeviceButton, importBackupButton, advancedFeaturesButton, connectJamiAcountManagerButton, configureSIPButton] {
button?.titleLabel?.ajustToTextSize() button?.titleLabel?.ajustToTextSize()
// Set left and right padding
let leftPadding: CGFloat = 5
let rightPadding: CGFloat = 5
button?.contentEdgeInsets = UIEdgeInsets(top: 0, left: leftPadding, bottom: 0, right: rightPadding)
} }
self.joinJamiButton.backgroundColor = .jamiButtonDark self.joinJamiButton.backgroundColor = .jamiButtonDark
self.linkAccountButton.backgroundColor = .jamiButtonDark self.linkAccountButton.backgroundColor = .jamiButtonDark
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment