<commit_before>// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/

import Foundation
import Shared
import UIKit

class HomeLogoHeaderCell: UICollectionViewCell, ReusableCell {
    private struct UX {
        static let imageHeight: CGFloat = 40
        static let imageWidth: CGFloat = 214.74
    }

    typealias a11y = AccessibilityIdentifiers.FirefoxHomepage.OtherButtons

    // MARK: - UI Elements
    lazy var logoButton: ActionButton = .build { button in
        button.setTitle("", for: .normal)
        button.backgroundColor = .clear
        button.accessibilityIdentifier = a11y.logoButton
        button.accessibilityLabel = .Settings.Homepage.Wallpaper.AccessibilityLabels.FxHomepageWallpaperButton<commit_msg>Bugfix #11244 - Adjust image scaling of logo button (#11260)<commit_after>// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/

import Foundation
import Shared
import UIKit

class HomeLogoHeaderCell: UICollectionViewCell, ReusableCell {
    private struct UX {
        static let imageHeight: CGFloat = 40
        static let imageWidth: CGFloat = 214.74
    }

    typealias a11y = AccessibilityIdentifiers.FirefoxHomepage.OtherButtons

    // MARK: - UI Elements
    lazy var logoButton: ActionButton = .build { button in
        if #available(iOS 15.0, *) {
            var config = UIButton.Configuration.plain()
            config.title = ""
            config.contentInsets = .zero
            button.configuration = config
        } else {
            button.setTitle("", for: .normal)
            button.backgroundColor = .clear
            button.contentEdgeInsets = .zero
        }

        button.accessibilityIdentifier = a11y.logoButton
        button.accessibilityLabel = .Settings.Homepage.Wallpaper.AccessibilityLabels.FxHomepageWallpaperButton
{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.020673076923076922, 'mean_word_length': 2.8537037037037036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5392406', 'n_tokens_mistral': 607, 'n_tokens_neox': 564, 'n_words': 181}