|
|
@ -66,7 +66,10 @@ class ReminderView: UIView {
|
|
|
|
case .nag:
|
|
|
|
case .nag:
|
|
|
|
self.backgroundColor = UIColor.ows_reminderYellow
|
|
|
|
self.backgroundColor = UIColor.ows_reminderYellow
|
|
|
|
case .explanation:
|
|
|
|
case .explanation:
|
|
|
|
self.backgroundColor = UIColor(rgbHex: 0xf5f5f5)
|
|
|
|
// TODO: Theme, review with design.
|
|
|
|
|
|
|
|
self.backgroundColor = (UIColor.isThemeEnabled()
|
|
|
|
|
|
|
|
? UIColor(rgbHex: 0x202020)
|
|
|
|
|
|
|
|
: UIColor(rgbHex: 0xf5f5f5))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
self.clipsToBounds = true
|
|
|
|
self.clipsToBounds = true
|
|
|
|
|
|
|
|
|
|
|
@ -85,7 +88,7 @@ class ReminderView: UIView {
|
|
|
|
// Label
|
|
|
|
// Label
|
|
|
|
label.font = UIFont.ows_dynamicTypeSubheadline
|
|
|
|
label.font = UIFont.ows_dynamicTypeSubheadline
|
|
|
|
container.addArrangedSubview(label)
|
|
|
|
container.addArrangedSubview(label)
|
|
|
|
label.textColor = UIColor.black.withAlphaComponent(0.9)
|
|
|
|
label.textColor = UIColor.ows_themeForeground()
|
|
|
|
label.numberOfLines = 0
|
|
|
|
label.numberOfLines = 0
|
|
|
|
label.lineBreakMode = .byWordWrapping
|
|
|
|
label.lineBreakMode = .byWordWrapping
|
|
|
|
|
|
|
|
|
|
|
@ -99,7 +102,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 = UIColor.black.withAlphaComponent(0.6)
|
|
|
|
iconView.tintColor = UIColor.ows_themeSecondary()
|
|
|
|
iconView.autoSetDimension(.width, toSize: 13)
|
|
|
|
iconView.autoSetDimension(.width, toSize: 13)
|
|
|
|
container.addArrangedSubview(iconView)
|
|
|
|
container.addArrangedSubview(iconView)
|
|
|
|
}
|
|
|
|
}
|
|
|
|