mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +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
|
/// Color to tint the search background image
|
||||||
var matrixSearchBackgroundImageTintColor: UIColor { get }
|
var matrixSearchBackgroundImageTintColor: UIColor { get }
|
||||||
|
|
||||||
|
/// Color to use in shadows. Should be contrast to `backgroundColor`.
|
||||||
|
var shadowColor: UIColor { get }
|
||||||
|
|
||||||
// MARK: - Customisation methods
|
// MARK: - Customisation methods
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,8 @@ class DarkTheme: NSObject, Theme {
|
||||||
var matrixSearchBackgroundImageTintColor: UIColor = UIColor(rgb: 0x7E7E7E)
|
var matrixSearchBackgroundImageTintColor: UIColor = UIColor(rgb: 0x7E7E7E)
|
||||||
var secondaryCircleButtonBackgroundColor: UIColor = UIColor(rgb: 0xE3E8F0)
|
var secondaryCircleButtonBackgroundColor: UIColor = UIColor(rgb: 0xE3E8F0)
|
||||||
|
|
||||||
|
var shadowColor: UIColor = UIColor(rgb: 0xFFFFFF)
|
||||||
|
|
||||||
var messageTickColor: UIColor = .white
|
var messageTickColor: UIColor = .white
|
||||||
|
|
||||||
func applyStyle(onTabBar tabBar: UITabBar) {
|
func applyStyle(onTabBar tabBar: UITabBar) {
|
||||||
|
|
|
@ -97,6 +97,8 @@ class DefaultTheme: NSObject, Theme {
|
||||||
|
|
||||||
var secondaryCircleButtonBackgroundColor: UIColor = UIColor(rgb: 0xE3E8F0)
|
var secondaryCircleButtonBackgroundColor: UIColor = UIColor(rgb: 0xE3E8F0)
|
||||||
|
|
||||||
|
var shadowColor: UIColor = UIColor(rgb: 0x000000)
|
||||||
|
|
||||||
func applyStyle(onTabBar tabBar: UITabBar) {
|
func applyStyle(onTabBar tabBar: UITabBar) {
|
||||||
tabBar.unselectedItemTintColor = self.tabBarUnselectedItemTintColor
|
tabBar.unselectedItemTintColor = self.tabBarUnselectedItemTintColor
|
||||||
tabBar.tintColor = self.tintColor
|
tabBar.tintColor = self.tintColor
|
||||||
|
|
Loading…
Reference in a new issue