From 13f485a5c385eb63cde8d223734058abe809555a Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Tue, 4 May 2021 19:25:24 +0300 Subject: [PATCH] Use new tile theme color --- Riot/Managers/Theme/Theme.swift | 3 --- Riot/Managers/Theme/Themes/DarkTheme.swift | 2 -- Riot/Managers/Theme/Themes/DefaultTheme.swift | 2 -- .../Views/BubbleCells/Call/CallBubbleCellBaseContentView.swift | 2 +- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Riot/Managers/Theme/Theme.swift b/Riot/Managers/Theme/Theme.swift index 0511d5085..72d2d1ab8 100644 --- a/Riot/Managers/Theme/Theme.swift +++ b/Riot/Managers/Theme/Theme.swift @@ -97,9 +97,6 @@ import DesignKit /// Color to use in shadows. Should be contrast to `backgroundColor`. var shadowColor: UIColor { get } - /// Color for background of call tiles. - var callTileBackgroundColor: UIColor { get } - // MARK: - Customisation methods diff --git a/Riot/Managers/Theme/Themes/DarkTheme.swift b/Riot/Managers/Theme/Themes/DarkTheme.swift index cb097911e..a3bc39557 100644 --- a/Riot/Managers/Theme/Themes/DarkTheme.swift +++ b/Riot/Managers/Theme/Themes/DarkTheme.swift @@ -90,8 +90,6 @@ class DarkTheme: NSObject, Theme { var shadowColor: UIColor = UIColor(rgb: 0xFFFFFF) - var callTileBackgroundColor: UIColor = UIColor(rgb: 0x394049) - var messageTickColor: UIColor = .white func applyStyle(onTabBar tabBar: UITabBar) { diff --git a/Riot/Managers/Theme/Themes/DefaultTheme.swift b/Riot/Managers/Theme/Themes/DefaultTheme.swift index 61cf6ebb9..7f6ae77b1 100644 --- a/Riot/Managers/Theme/Themes/DefaultTheme.swift +++ b/Riot/Managers/Theme/Themes/DefaultTheme.swift @@ -100,8 +100,6 @@ class DefaultTheme: NSObject, Theme { var shadowColor: UIColor = UIColor(rgb: 0x000000) - var callTileBackgroundColor: UIColor = UIColor(rgb: 0xF4F6FA) - func applyStyle(onTabBar tabBar: UITabBar) { tabBar.unselectedItemTintColor = self.tabBarUnselectedItemTintColor tabBar.tintColor = self.tintColor diff --git a/Riot/Modules/Room/Views/BubbleCells/Call/CallBubbleCellBaseContentView.swift b/Riot/Modules/Room/Views/BubbleCells/Call/CallBubbleCellBaseContentView.swift index 32a633ea2..cdec7a227 100644 --- a/Riot/Modules/Room/Views/BubbleCells/Call/CallBubbleCellBaseContentView.swift +++ b/Riot/Modules/Room/Views/BubbleCells/Call/CallBubbleCellBaseContentView.swift @@ -103,7 +103,7 @@ extension CallBubbleCellBaseContentView: Themable { paginationLabel.textColor = theme.tintColor paginationSeparatorView.backgroundColor = theme.tintColor - bgView.backgroundColor = theme.callTileBackgroundColor + bgView.backgroundColor = theme.colors.tile callerNameLabel.textColor = theme.textPrimaryColor callIconView.tintColor = theme.textTertiaryColor callTypeLabel.textColor = theme.textSecondaryColor