Files
SideStore/AltStore/Components/AppBannerView.swift

45 lines
1.0 KiB
Swift
Raw Normal View History

2019-09-03 21:58:07 -07:00
//
// AppBannerView.swift
// AltStore
//
// Created by Riley Testut on 8/29/19.
// Copyright © 2019 Riley Testut. All rights reserved.
//
import UIKit
import Roxas
class AppBannerView: RSTNibView
{
@IBOutlet var titleLabel: UILabel!
@IBOutlet var subtitleLabel: UILabel!
@IBOutlet var iconImageView: AppIconImageView!
@IBOutlet var button: PillButton!
2019-10-23 13:32:17 -07:00
@IBOutlet var buttonLabel: UILabel!
2019-09-03 21:58:07 -07:00
@IBOutlet var betaBadgeView: UIView!
2019-10-23 13:32:17 -07:00
@IBOutlet var backgroundEffectView: UIVisualEffectView!
@IBOutlet private var vibrancyView: UIVisualEffectView!
2019-09-03 21:58:07 -07:00
override func tintColorDidChange()
{
super.tintColorDidChange()
self.update()
}
}
private extension AppBannerView
{
func update()
{
self.clipsToBounds = true
self.layer.cornerRadius = 22
self.subtitleLabel.textColor = self.tintColor
self.button.tintColor = self.tintColor
2019-10-23 13:32:17 -07:00
self.backgroundEffectView.backgroundColor = self.tintColor
2019-09-03 21:58:07 -07:00
}
}