mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-27 07:46:15 +01:00
chore: update search textfield and sign up button text
This commit is contained in:
parent
e1c670a7ed
commit
250de39972
@ -96,11 +96,13 @@ final class PickServerServerSectionTableHeaderView: UIView {
|
|||||||
textField.tintColor = Asset.Colors.Label.primary.color
|
textField.tintColor = Asset.Colors.Label.primary.color
|
||||||
textField.textColor = Asset.Colors.Label.primary.color
|
textField.textColor = Asset.Colors.Label.primary.color
|
||||||
textField.adjustsFontForContentSizeCategory = true
|
textField.adjustsFontForContentSizeCategory = true
|
||||||
textField.attributedPlaceholder =
|
textField.attributedPlaceholder = NSAttributedString(
|
||||||
NSAttributedString(
|
string: L10n.Scene.ServerPicker.Input.searchServersOrEnterUrl,
|
||||||
string: L10n.Scene.ServerPicker.Input.placeholder,
|
attributes: [
|
||||||
attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .regular),
|
.font: UIFont.systemFont(ofSize: 15, weight: .regular),
|
||||||
.foregroundColor: Asset.Colors.Label.secondary.color.withAlphaComponent(0.6)])
|
.foregroundColor: Asset.Colors.Label.secondary.color.withAlphaComponent(0.6)
|
||||||
|
]
|
||||||
|
)
|
||||||
textField.clearButtonMode = .whileEditing
|
textField.clearButtonMode = .whileEditing
|
||||||
textField.autocapitalizationType = .none
|
textField.autocapitalizationType = .none
|
||||||
textField.autocorrectionType = .no
|
textField.autocorrectionType = .no
|
||||||
|
@ -50,7 +50,8 @@ final class WelcomeViewController: UIViewController, NeedsDependency {
|
|||||||
private(set) lazy var signUpButton: PrimaryActionButton = {
|
private(set) lazy var signUpButton: PrimaryActionButton = {
|
||||||
let button = PrimaryActionButton()
|
let button = PrimaryActionButton()
|
||||||
button.adjustsBackgroundImageWhenUserInterfaceStyleChanges = false
|
button.adjustsBackgroundImageWhenUserInterfaceStyleChanges = false
|
||||||
button.setTitle(L10n.Scene.Welcome.getStarted, for: .normal)
|
button.titleLabel?.font = UIFontMetrics(forTextStyle: .headline).scaledFont(for: .systemFont(ofSize: 17, weight: .semibold))
|
||||||
|
button.setTitle(L10n.Common.Controls.Actions.signUp, for: .normal)
|
||||||
let backgroundImageColor: UIColor = .white
|
let backgroundImageColor: UIColor = .white
|
||||||
let backgroundImageHighlightedColor: UIColor = UIColor(white: 0.8, alpha: 1.0)
|
let backgroundImageHighlightedColor: UIColor = UIColor(white: 0.8, alpha: 1.0)
|
||||||
button.setBackgroundImage(.placeholder(color: backgroundImageColor), for: .normal)
|
button.setBackgroundImage(.placeholder(color: backgroundImageColor), for: .normal)
|
||||||
@ -63,7 +64,7 @@ final class WelcomeViewController: UIViewController, NeedsDependency {
|
|||||||
private(set) lazy var signInButton: PrimaryActionButton = {
|
private(set) lazy var signInButton: PrimaryActionButton = {
|
||||||
let button = PrimaryActionButton()
|
let button = PrimaryActionButton()
|
||||||
button.adjustsBackgroundImageWhenUserInterfaceStyleChanges = false
|
button.adjustsBackgroundImageWhenUserInterfaceStyleChanges = false
|
||||||
button.titleLabel?.font = UIFontMetrics(forTextStyle: .headline).scaledFont(for: .systemFont(ofSize: 15, weight: .semibold))
|
button.titleLabel?.font = UIFontMetrics(forTextStyle: .headline).scaledFont(for: .systemFont(ofSize: 17, weight: .semibold))
|
||||||
button.setTitle(L10n.Scene.Welcome.logIn, for: .normal)
|
button.setTitle(L10n.Scene.Welcome.logIn, for: .normal)
|
||||||
let backgroundImageColor = Asset.Scene.Welcome.signInButtonBackground.color
|
let backgroundImageColor = Asset.Scene.Welcome.signInButtonBackground.color
|
||||||
let backgroundImageHighlightedColor = Asset.Scene.Welcome.signInButtonBackground.color.withAlphaComponent(0.8)
|
let backgroundImageHighlightedColor = Asset.Scene.Welcome.signInButtonBackground.color.withAlphaComponent(0.8)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user