reskin: kill kRiotPrimaryBgColor

This commit is contained in:
manuroe
2019-01-10 17:50:26 +01:00
parent 77e6a81276
commit dd4e20d389
49 changed files with 120 additions and 120 deletions
+4 -4
View File
@@ -111,7 +111,7 @@
self.localPreviewContainerView.layer.cornerRadius = 5;
self.localPreviewContainerView.clipsToBounds = YES;
self.remotePreviewContainerView.backgroundColor = kRiotPrimaryBgColor;
self.remotePreviewContainerView.backgroundColor = RiotDesignValues.theme.backgroundColor;
if (gradientMaskLayer)
{
@@ -121,9 +121,9 @@
// Add a gradient mask programatically at the top of the screen (background of the call information (name, status))
gradientMaskLayer = [CAGradientLayer layer];
// Consider the grayscale components of the kRiotPrimaryBgColor.
// Consider the grayscale components of the RiotDesignValues.theme.backgroundColor.
CGFloat white = 1.0;
[kRiotPrimaryBgColor getWhite:&white alpha:nil];
[RiotDesignValues.theme.backgroundColor getWhite:&white alpha:nil];
CGColorRef opaqueWhiteColor = [UIColor colorWithWhite:white alpha:1.0].CGColor;
CGColorRef transparentWhiteColor = [UIColor colorWithWhite:white alpha:0].CGColor;
@@ -284,7 +284,7 @@
// Set Riot navigation bar colors
[RiotDesignValues.theme applyStyleOnNavigationBar:usersDevicesNavigationController.navigationBar];
usersDevicesNavigationController.navigationBar.barTintColor = kRiotPrimaryBgColor;
usersDevicesNavigationController.navigationBar.barTintColor = RiotDesignValues.theme.backgroundColor;
[usersDevicesNavigationController pushViewController:usersDevicesViewController animated:NO];