Refine views.

pull/1/head
Matthew Chen 6 years ago
parent 9f9e0965d5
commit fcbf8d4dc2

@ -66,7 +66,10 @@ class ReminderView: UIView {
case .nag:
self.backgroundColor = UIColor.ows_reminderYellow
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
@ -85,7 +88,7 @@ class ReminderView: UIView {
// Label
label.font = UIFont.ows_dynamicTypeSubheadline
container.addArrangedSubview(label)
label.textColor = UIColor.black.withAlphaComponent(0.9)
label.textColor = UIColor.ows_themeForeground()
label.numberOfLines = 0
label.lineBreakMode = .byWordWrapping
@ -99,7 +102,7 @@ class ReminderView: UIView {
}
let iconView = UIImageView(image: iconImage.withRenderingMode(.alwaysTemplate))
iconView.contentMode = .scaleAspectFit
iconView.tintColor = UIColor.black.withAlphaComponent(0.6)
iconView.tintColor = UIColor.ows_themeSecondary()
iconView.autoSetDimension(.width, toSize: 13)
container.addArrangedSubview(iconView)
}

@ -104,6 +104,12 @@ const CGFloat kOWSTable_DefaultCellHeight = 45.f;
cell.backgroundColor = [UIColor ows_themeBackgroundColor];
cell.textLabel.font = [UIFont ows_regularFontWithSize:18.f];
cell.textLabel.textColor = [UIColor ows_themeForegroundColor];
UIView *selectedBackgroundView = [UIView new];
selectedBackgroundView.backgroundColor =
[(UIColor.isThemeEnabled ? [UIColor ows_whiteColor] : [UIColor ows_blackColor]) colorWithAlphaComponent:0.08];
cell.selectedBackgroundView = selectedBackgroundView;
return cell;
}

Loading…
Cancel
Save