Add shadow color to theme

This commit is contained in:
ismailgulek 2021-04-27 01:30:21 +03:00
parent b69e3bb68a
commit d076afecc1
No known key found for this signature in database
GPG key ID: E96336D42D9470A9
3 changed files with 7 additions and 0 deletions

View file

@ -93,6 +93,9 @@ import UIKit
/// Color to tint the search background image
var matrixSearchBackgroundImageTintColor: UIColor { get }
/// Color to use in shadows. Should be contrast to `backgroundColor`.
var shadowColor: UIColor { get }
// MARK: - Customisation methods

View file

@ -87,6 +87,8 @@ class DarkTheme: NSObject, Theme {
var matrixSearchBackgroundImageTintColor: UIColor = UIColor(rgb: 0x7E7E7E)
var secondaryCircleButtonBackgroundColor: UIColor = UIColor(rgb: 0xE3E8F0)
var shadowColor: UIColor = UIColor(rgb: 0xFFFFFF)
var messageTickColor: UIColor = .white
func applyStyle(onTabBar tabBar: UITabBar) {

View file

@ -97,6 +97,8 @@ class DefaultTheme: NSObject, Theme {
var secondaryCircleButtonBackgroundColor: UIColor = UIColor(rgb: 0xE3E8F0)
var shadowColor: UIColor = UIColor(rgb: 0x000000)
func applyStyle(onTabBar tabBar: UITabBar) {
tabBar.unselectedItemTintColor = self.tabBarUnselectedItemTintColor
tabBar.tintColor = self.tintColor