Fix nag reminder v. dark theme.

pull/1/head
Matthew Chen 7 years ago
parent a02a5160f4
commit 0eb13dd827

@ -61,12 +61,18 @@ class ReminderView: UIView {
} }
func setupSubviews() { func setupSubviews() {
let textColor: UIColor
let iconColor: UIColor
switch (mode) { switch (mode) {
case .nag: case .nag:
self.backgroundColor = UIColor.ows_reminderYellow self.backgroundColor = UIColor.ows_reminderYellow
textColor = UIColor.ows_gray90
iconColor = UIColor.ows_gray60
case .explanation: case .explanation:
// TODO: Theme, review with design. // TODO: Theme, review with design.
self.backgroundColor = Theme.offBackgroundColor self.backgroundColor = Theme.offBackgroundColor
textColor = Theme.primaryColor
iconColor = Theme.secondaryColor
} }
self.clipsToBounds = true self.clipsToBounds = true
@ -85,7 +91,7 @@ class ReminderView: UIView {
// Label // Label
label.font = UIFont.ows_dynamicTypeSubheadline label.font = UIFont.ows_dynamicTypeSubheadline
container.addArrangedSubview(label) container.addArrangedSubview(label)
label.textColor = Theme.primaryColor label.textColor = textColor
label.numberOfLines = 0 label.numberOfLines = 0
label.lineBreakMode = .byWordWrapping label.lineBreakMode = .byWordWrapping
@ -99,7 +105,7 @@ class ReminderView: UIView {
} }
let iconView = UIImageView(image: iconImage.withRenderingMode(.alwaysTemplate)) let iconView = UIImageView(image: iconImage.withRenderingMode(.alwaysTemplate))
iconView.contentMode = .scaleAspectFit iconView.contentMode = .scaleAspectFit
iconView.tintColor = Theme.secondaryColor iconView.tintColor = iconColor
iconView.autoSetDimension(.width, toSize: 13) iconView.autoSetDimension(.width, toSize: 13)
container.addArrangedSubview(iconView) container.addArrangedSubview(iconView)
} }

Loading…
Cancel
Save