Skip to content

Commit

Permalink
Updated colors for staff scanner buttons and changed the view title s…
Browse files Browse the repository at this point in the history
…tyle to viewTitle instead of viewTitleBrown to match the 2025 design of white titles instead of the old brown.
  • Loading branch information
nathannwangg committed Jan 31, 2025
1 parent c16f17a commit d4b23ba
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions HackIllinois/ViewControllers/HIQRScannerSelection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@ class HIQRScannerSelection: HIBaseViewController {
}
private let meetingButton = HIButton {
$0.tintHIColor = \.action
$0.backgroundHIColor = \.scannerButtonPink
$0.backgroundHIColor = \.scannerButtonYellowOrange
$0.layer.borderWidth = 4.0
$0.layer.borderColor = #colorLiteral(red: 0.4588235294, green: 0.1960784314, blue: 0.07843137255, alpha: 1)
$0.layer.borderColor = #colorLiteral(red: 0.5294, green: 0.3373, blue: 0.0314, alpha: 1)
// 3D Effect
$0.layer.masksToBounds = false
$0.layer.shadowColor = #colorLiteral(red: 0.337254902, green: 0.1411764706, blue: 0.06666666667, alpha: 1)
$0.layer.shadowColor = #colorLiteral(red: 0.5294, green: 0.3373, blue: 0.0314, alpha: 1)
$0.layer.shadowOpacity = 1
$0.layer.shadowOffset = CGSize(width: 0, height: 12)
$0.layer.shadowOffset = CGSize(width: 0, height: 5)
$0.layer.shadowRadius = 0
}
private let attendeeButton = HIButton {
$0.tintHIColor = \.action
$0.backgroundHIColor = \.scannerButtonTeal
$0.backgroundHIColor = \.scannerButtonTealBlue
$0.layer.borderWidth = 4.0
$0.layer.borderColor = #colorLiteral(red: 0.4588235294, green: 0.1960784314, blue: 0.07843137255, alpha: 1)
$0.layer.borderColor = #colorLiteral(red: 0.0549, green: 0.2471, blue: 0.2549, alpha: 1)
$0.layer.masksToBounds = false
$0.layer.shadowColor = #colorLiteral(red: 0.337254902, green: 0.1411764706, blue: 0.06666666667, alpha: 1)
$0.layer.shadowColor = #colorLiteral(red: 0.0549, green: 0.2471, blue: 0.2549, alpha: 1)
$0.layer.shadowOpacity = 1
$0.layer.shadowOffset = CGSize(width: 0, height: 12)
$0.layer.shadowOffset = CGSize(width: 0, height: 5)
$0.layer.shadowRadius = 0
}
@objc dynamic override func setUpBackgroundView() {
Expand Down Expand Up @@ -116,8 +116,9 @@ extension HIQRScannerSelection {
closeButton.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: 8).isActive = true
closeButton.constrain(width: 60, height: 60)
closeButton.imageView?.contentMode = .scaleToFill
let label = HILabel(style: (UIDevice.current.userInterfaceIdiom == .pad) ? .viewTitleBrown : .viewTitleBrown)
let label = HILabel(style: (UIDevice.current.userInterfaceIdiom == .pad) ? .viewTitle : .viewTitle)
label.text = "SCANNER"
label.textHIColor = \.whiteText
view.addSubview(label)
label.centerYAnchor.constraint(equalTo: closeButton.centerYAnchor).isActive = true
label.leadingAnchor.constraint(equalTo: closeButton.trailingAnchor, constant: 3).isActive = true
Expand Down

0 comments on commit d4b23ba

Please sign in to comment.