refactored config
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a6bc7968e7
commit
f517a6fd28
@ -147,19 +147,12 @@ open class TooltipDialog: View, UIScrollViewDelegate {
|
||||
private var fullWidth: CGFloat = 296
|
||||
private var minHeight: CGFloat = 96.0
|
||||
private var maxHeight: CGFloat = 312.0
|
||||
private let containerViewInset = VDSLayout.Spacing.space4X.value
|
||||
|
||||
private let containerViewBackgroundColorConfiguration = SurfaceColorConfiguration().with { instance in
|
||||
instance.lightColor = .white
|
||||
instance.darkColor = .black
|
||||
}
|
||||
|
||||
private let backgroundColorConfiguration = SurfaceColorConfiguration(VDSColor.backgroundPrimaryDark, VDSColor.backgroundPrimaryLight)
|
||||
|
||||
private let backgroundColorConfiguration = SurfaceColorConfiguration(VDSColor.backgroundPrimaryLight, VDSColor.backgroundPrimaryDark)
|
||||
private let closeButtonTextColorConfiguration = SurfaceColorConfiguration(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark)
|
||||
|
||||
private let containerViewInset = VDSLayout.Spacing.space4X.value
|
||||
private var contentStackViewBottomConstraint: NSLayoutConstraint?
|
||||
|
||||
private var heightConstraint: NSLayoutConstraint?
|
||||
|
||||
//--------------------------------------------------
|
||||
@ -212,7 +205,7 @@ open class TooltipDialog: View, UIScrollViewDelegate {
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
backgroundColor = containerViewBackgroundColorConfiguration.getColor(self)
|
||||
backgroundColor = backgroundColorConfiguration.getColor(self)
|
||||
scrollView.indicatorStyle = surface == .light ? .black : .white
|
||||
|
||||
titleLabel.removeFromSuperview()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user