mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 02:52:45 +02:00
reskin: kill kRiotPrimaryBgColor
This commit is contained in:
@@ -57,11 +57,11 @@ static const CGFloat kButtonSize = 80.0;
|
||||
self = [super initWithFrame:CGRectZero];
|
||||
if (self)
|
||||
{
|
||||
self.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.backgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
self.opaque = YES;
|
||||
|
||||
self.callerImageView = [[MXKImageView alloc] init];
|
||||
self.callerImageView.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.callerImageView.backgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
self.callerImageView.clipsToBounds = YES;
|
||||
self.callerImageView.mediaFolder = kMXMediaManagerAvatarThumbnailFolder;
|
||||
self.callerImageView.enableInMemoryCache = YES;
|
||||
@@ -74,14 +74,14 @@ static const CGFloat kButtonSize = 80.0;
|
||||
mediaManager:mediaManager];
|
||||
|
||||
self.callerNameLabel = [[UILabel alloc] init];
|
||||
self.callerNameLabel.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.callerNameLabel.backgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
self.callerNameLabel.textColor = kRiotPrimaryTextColor;
|
||||
self.callerNameLabel.font = [UIFont systemFontOfSize:24.0 weight:UIFontWeightMedium];
|
||||
self.callerNameLabel.text = callerName;
|
||||
self.callerNameLabel.textAlignment = NSTextAlignmentCenter;
|
||||
|
||||
self.callInfoLabel = [[UILabel alloc] init];
|
||||
self.callInfoLabel.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.callInfoLabel.backgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
self.callInfoLabel.textColor = kRiotSecondaryTextColor;
|
||||
self.callInfoLabel.font = [UIFont systemFontOfSize:18.0 weight:UIFontWeightRegular];
|
||||
self.callInfoLabel.text = callInfo;
|
||||
@@ -91,11 +91,11 @@ static const CGFloat kButtonSize = 80.0;
|
||||
|
||||
self.answerButton = [[CircleButton alloc] initWithImage:[UIImage imageNamed:@"voice_call_icon"]
|
||||
borderColor:answerButtonBorderColor];
|
||||
self.answerButton.defaultBackgroundColor = kRiotPrimaryBgColor;
|
||||
self.answerButton.defaultBackgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
[self.answerButton addTarget:self action:@selector(didTapAnswerButton) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
self.answerTitleLabel = [[UILabel alloc] init];
|
||||
self.answerTitleLabel.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.answerTitleLabel.backgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
self.answerTitleLabel.textColor = answerButtonBorderColor;
|
||||
self.answerTitleLabel.font = [UIFont systemFontOfSize:18.0 weight:UIFontWeightRegular];
|
||||
self.answerTitleLabel.text = NSLocalizedStringFromTable(@"accept", @"Vector", nil);
|
||||
@@ -104,11 +104,11 @@ static const CGFloat kButtonSize = 80.0;
|
||||
|
||||
self.rejectButton = [[CircleButton alloc] initWithImage:[UIImage imageNamed:@"call_hangup_icon"]
|
||||
borderColor:rejectButtonBorderColor];
|
||||
self.rejectButton.defaultBackgroundColor = kRiotPrimaryBgColor;
|
||||
self.rejectButton.defaultBackgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
[self.rejectButton addTarget:self action:@selector(didTapRejectButton) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
self.rejectTitleLabel = [[UILabel alloc] init];
|
||||
self.rejectTitleLabel.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.rejectTitleLabel.backgroundColor = RiotDesignValues.theme.backgroundColor;
|
||||
self.rejectTitleLabel.textColor = rejectButtonBorderColor;
|
||||
self.rejectTitleLabel.font = [UIFont systemFontOfSize:18.0 weight:UIFontWeightRegular];
|
||||
self.rejectTitleLabel.text = NSLocalizedStringFromTable(@"decline", @"Vector", nil);
|
||||
|
||||
Reference in New Issue
Block a user