diff --git a/VDS/Components/Tooltip/TooltipAlertViewController.swift b/VDS/Components/Tooltip/TooltipAlertViewController.swift index 66bf7eca..23d84c48 100644 --- a/VDS/Components/Tooltip/TooltipAlertViewController.swift +++ b/VDS/Components/Tooltip/TooltipAlertViewController.swift @@ -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()