mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Add shadow color to theme
This commit is contained in:
parent
b69e3bb68a
commit
d076afecc1
3 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue