diff --git a/Session/Meta/Images.xcassets/Session/SessionHeading.imageset/Contents.json b/Session/Meta/Images.xcassets/Session/SessionHeading.imageset/Contents.json new file mode 100644 index 000000000..d360cfe11 --- /dev/null +++ b/Session/Meta/Images.xcassets/Session/SessionHeading.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "heading.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Session/Meta/Images.xcassets/Session/SessionHeading.imageset/heading.pdf b/Session/Meta/Images.xcassets/Session/SessionHeading.imageset/heading.pdf new file mode 100644 index 000000000..982e95d6f Binary files /dev/null and b/Session/Meta/Images.xcassets/Session/SessionHeading.imageset/heading.pdf differ diff --git a/Session/Shared/BaseVC.swift b/Session/Shared/BaseVC.swift index 83f9c9262..d68be69f9 100644 --- a/Session/Shared/BaseVC.swift +++ b/Session/Shared/BaseVC.swift @@ -1,3 +1,4 @@ +import SessionUIKit class BaseVC : UIViewController { private var hasGradient = false @@ -75,6 +76,16 @@ class BaseVC : UIViewController { crossfadeLabel.pin(to: container) navigationItem.titleView = container } + + internal func setUpNavBarSessionHeading() { + let headingImageView = UIImageView() + headingImageView.tintColor = Colors.sessionHeading + headingImageView.image = UIImage(named: "SessionHeading")?.withRenderingMode(.alwaysTemplate) + headingImageView.contentMode = .scaleAspectFit + headingImageView.set(.width, to: 150) + headingImageView.set(.height, to: 20) + navigationItem.titleView = headingImageView + } internal func setUpNavBarSessionIcon() { let logoImageView = UIImageView() diff --git a/SessionUIKit/Style Guide/Colors.swift b/SessionUIKit/Style Guide/Colors.swift index 1a150ebc9..35f003175 100644 --- a/SessionUIKit/Style Guide/Colors.swift +++ b/SessionUIKit/Style Guide/Colors.swift @@ -42,4 +42,5 @@ public final class Colors : NSObject { @objc public static var pnOptionBorder: UIColor { UIColor(named: "session_pn_option_border")! } @objc public static var pathsBuilding: UIColor { UIColor(named: "session_paths_building")! } @objc public static var pinIcon: UIColor { UIColor(named: "session_pin_icon")! } + @objc public static var sessionHeading: UIColor { UIColor(named: "session_heading")! } } diff --git a/SessionUIKit/Style Guide/Colors.xcassets/session_heading.colorset/Contents.json b/SessionUIKit/Style Guide/Colors.xcassets/session_heading.colorset/Contents.json new file mode 100644 index 000000000..4da0447c6 --- /dev/null +++ b/SessionUIKit/Style Guide/Colors.xcassets/session_heading.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x00", + "green" : "0x00", + "red" : "0x00" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x82", + "green" : "0xF7", + "red" : "0x00" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +}