mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
Message bubbles: Use new background colors.
This commit is contained in:
@@ -96,6 +96,12 @@ import DesignKit
|
||||
|
||||
/// Color to use in shadows. Should be contrast to `backgroundColor`.
|
||||
var shadowColor: UIColor { get }
|
||||
|
||||
// Timeline cells
|
||||
|
||||
var roomCellIncomingBubbleBackgroundColor: UIColor { get }
|
||||
|
||||
var roomCellOutgoingBubbleBackgroundColor: UIColor { get }
|
||||
|
||||
// MARK: - Customisation methods
|
||||
|
||||
|
||||
@@ -91,6 +91,12 @@ class DarkTheme: NSObject, Theme {
|
||||
var shadowColor: UIColor = UIColor(rgb: 0xFFFFFF)
|
||||
|
||||
var messageTickColor: UIColor = .white
|
||||
|
||||
var roomCellIncomingBubbleBackgroundColor: UIColor {
|
||||
return self.colors.system
|
||||
}
|
||||
|
||||
var roomCellOutgoingBubbleBackgroundColor: UIColor = UIColor(rgb: 0x133A34)
|
||||
|
||||
func applyStyle(onTabBar tabBar: UITabBar) {
|
||||
tabBar.unselectedItemTintColor = self.tabBarUnselectedItemTintColor
|
||||
|
||||
@@ -100,6 +100,10 @@ class DefaultTheme: NSObject, Theme {
|
||||
|
||||
var shadowColor: UIColor = UIColor(rgb: 0x000000)
|
||||
|
||||
var roomCellIncomingBubbleBackgroundColor: UIColor = UIColor(rgb: 0xE8EDF4)
|
||||
|
||||
var roomCellOutgoingBubbleBackgroundColor: UIColor = UIColor(rgb: 0xE7F8F3)
|
||||
|
||||
func applyStyle(onTabBar tabBar: UITabBar) {
|
||||
tabBar.unselectedItemTintColor = self.tabBarUnselectedItemTintColor
|
||||
tabBar.tintColor = self.tintColor
|
||||
|
||||
Reference in New Issue
Block a user