Skip to content

Commit

Permalink
- address code review findings by @hosy in #1092
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schwarz committed Apr 25, 2022
1 parent 4e14155 commit 3036f54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ class StaticLoginSingleAccountServerListViewController: ServerListTableViewContr
let attributedTitle = NSMutableAttributedString()

attributedTitle.append(NSAttributedString(string: displayName.appendingFormat("\n"), attributes: [
NSAttributedString.Key.font : UIFont.boldSystemFont(ofSize: 24)
NSAttributedString.Key.font : UIFont.preferredFont(forTextStyle: .title2, with: .bold)
]))

if let serverName = bookmark.url?.host {
attributedTitle.append(NSAttributedString(string: serverName, attributes: [
NSAttributedString.Key.font : UIFont.systemFont(ofSize: 18)
NSAttributedString.Key.font : UIFont.preferredFont(forTextStyle: .title3)
]))
}

Expand Down

0 comments on commit 3036f54

Please sign in to comment.