Skip to content

Commit

Permalink
Remove - Clean up unused constants (#20578)
Browse files Browse the repository at this point in the history
* Remove color extension

* Remove unused font sizes and fonts
  • Loading branch information
thatswinnie authored Jun 7, 2024
1 parent d9a7154 commit dd5cd65
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions firefox-ios/Client/Frontend/UIConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
import UIKit
import Shared

extension UIColor {
// These are colors which we shouldn't use anymore - we'll migrate to use the new theming system
struct LegacyDefaults {
// This color should exactly match the ios text highlight
static let iOSTextHighlightBlue = UIColor(rgb: 0xccdded)
}
}

public struct UIConstants {
static let DefaultPadding: CGFloat = 10
static let SnackbarButtonHeight: CGFloat = 57
Expand All @@ -23,12 +15,8 @@ public struct UIConstants {
static let ZoomPageBarHeight: CGFloat = 54

// Static fonts
static let DefaultChromeSize: CGFloat = 16
static let DefaultChromeSmallSize: CGFloat = 11
static let PasscodeEntryFontSize: CGFloat = 36
static let DefaultChromeFont = UIFont.systemFont(ofSize: DefaultChromeSize, weight: UIFont.Weight.regular)
static let DefaultChromeSmallFontBold = UIFont.boldSystemFont(ofSize: DefaultChromeSmallSize)
static let PasscodeEntryFont = UIFont.systemFont(ofSize: PasscodeEntryFontSize, weight: UIFont.Weight.bold)

/// JPEG compression quality for persisted screenshots. Must be between 0-1.
static let ScreenshotQuality: Float = 1
Expand Down

0 comments on commit dd5cd65

Please sign in to comment.