Commit de7bd6f1 authored by Jose Blaya's avatar Jose Blaya

messages UI

parent c369d583
......@@ -275,6 +275,11 @@ public class Theme {
view.backgroundColor = palette.accent1
}
/// :nodoc:
public func applyMessagesBackground(_ view: UIView) {
view.backgroundColor = palette.appearance == .dark ? UIColor.piaGrey8 : UIColor.piaGrey2
}
// MARK: Table View Utils
/// :nodoc:
......@@ -513,7 +518,7 @@ public class Theme {
paragraph.alignment = .center
paragraph.minimumLineHeight = 16
let fullRange = NSMakeRange(0, plain.length)
attributed.addAttribute(.font, value: UIFont.regularFontWith(size: 14), range: fullRange)
attributed.addAttribute(.font, value: UIFont.mediumFontWith(size: 14), range: fullRange)
if Theme.current.palette.appearance == .dark {
attributed.addAttribute(.foregroundColor, value: UIColor.white, range: fullRange)
} else {
......@@ -608,6 +613,10 @@ public class Theme {
textView.tintColor = palette.lineColor
}
public func applyMessageLinkAttributes(_ textView: UITextView, withColor color: UIColor) {
textView.tintColor = color
}
/// :nodoc:
public func applyScrollableMap(_ imageView: UIImageView) {
imageView.image = palette.appearance == .dark ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment