Skip to content

Commit

Permalink
Remove FXIOS-6346 [v119] DefaultSmallFontBold from LegacyDynamicFont…
Browse files Browse the repository at this point in the history
…Helper #14266 (#16420)

* Issue #14266 Replaced DefaultSmallFontBold with preferredFont And Removed DefaultSmallFontBold from DynamicFontHelper

* Refactor [v119] Added Spaces between params #14266
  • Loading branch information
akshat3358 authored Sep 18, 2023
1 parent 2c8d39a commit 9f94d78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Client/Frontend/Browser/Tabs/Legacy/LegacyTabCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class LegacyTabCell: UICollectionViewCell,
private lazy var titleText: UILabel = .build { label in
label.isUserInteractionEnabled = false
label.numberOfLines = 1
label.font = LegacyDynamicFontHelper.defaultHelper.DefaultSmallFontBold
label.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body, size: 12, weight: .semibold)
}

private lazy var smallFaviconView: FaviconImageView = .build { _ in }
Expand Down Expand Up @@ -226,7 +226,7 @@ class LegacyTabCell: UICollectionViewCell,
screenshotView.image = nil
backgroundHolder.transform = .identity
backgroundHolder.alpha = 1
self.titleText.font = LegacyDynamicFontHelper.defaultHelper.DefaultSmallFontBold
self.titleText.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body, size: 12, weight: .semibold)
layer.shadowOffset = .zero
layer.shadowPath = nil
layer.shadowOpacity = 0
Expand Down
3 changes: 0 additions & 3 deletions Client/Helpers/LegacyDynamicFontHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ class LegacyDynamicFontHelper: NSObject {
var DefaultSmallFont: UIFont {
return UIFont.systemFont(ofSize: defaultSmallFontSize, weight: UIFont.Weight.regular)
}
var DefaultSmallFontBold: UIFont {
return UIFont.boldSystemFont(ofSize: defaultSmallFontSize)
}

/**
* Standard
Expand Down

0 comments on commit 9f94d78

Please sign in to comment.