Skip to content

Commit

Permalink
[Theming] Update theming for web_default theme option in sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur committed Oct 20, 2023
1 parent 5e39326 commit 662976a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ extension Configuration.ColorScheme {
var navigationBarAppearance: UINavigationBarAppearance {
switch self {
case .web:
UIBarButtonItem.appearance().tintColor = .white
let navBarAppearance = UINavigationBarAppearance()
navBarAppearance.backgroundImage = UIImage(named: "WebBrowserBarBackground")
navBarAppearance.titleTextAttributes = [.foregroundColor: UIColor.white]
navBarAppearance.backgroundColor = UIColor(red: 0.19, green: 0.05, blue: 0.48, alpha: 1.00)
return navBarAppearance
default:
let navBarAppearance = UINavigationBarAppearance()
Expand Down
2 changes: 1 addition & 1 deletion Sources/ShopifyCheckout/CheckoutViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CheckoutViewController: UIViewController, UIAdaptivePresentationController
private let checkoutURL: URL

private lazy var closeBarButtonItem = UIBarButtonItem(
barButtonSystemItem: .close, target: self, action: #selector(close)
barButtonSystemItem: .stop, target: self, action: #selector(close)
)

// MARK: Initializers
Expand Down

0 comments on commit 662976a

Please sign in to comment.