reskin: Rename RiotDesignValues -> ThemeService

This commit is contained in:
manuroe
2019-01-11 10:32:56 +01:00
parent 192d04fcbd
commit f0c22a14af
123 changed files with 992 additions and 1004 deletions
@@ -17,7 +17,7 @@
#import "RoomActivitiesView.h"
#import "RiotDesignValues.h"
#import "ThemeService.h"
#import "Riot-Swift.h"
#import <objc/runtime.h>
@@ -112,10 +112,10 @@
{
[super customizeViewRendering];
self.separatorView.backgroundColor = RiotDesignValues.theme.headerBackgroundColor;
self.separatorView.backgroundColor = ThemeService.theme.headerBackgroundColor;
if (self.messageLabel.textColor != kRiotColorPinkRed)
{
self.messageLabel.textColor = RiotDesignValues.theme.textSecondaryColor;
self.messageLabel.textColor = ThemeService.theme.textSecondaryColor;
}
}
@@ -260,12 +260,12 @@
// Display the string in white on pink red
NSRange wholeString = NSMakeRange(0, onGoingConferenceCallAttibutedString.length);
[onGoingConferenceCallAttibutedString addAttribute:NSForegroundColorAttributeName value:RiotDesignValues.theme.backgroundColor range:wholeString];
[onGoingConferenceCallAttibutedString addAttribute:NSForegroundColorAttributeName value:ThemeService.theme.backgroundColor range:wholeString];
[onGoingConferenceCallAttibutedString addAttribute:NSBackgroundColorAttributeName value:kRiotColorPinkRed range:wholeString];
[onGoingConferenceCallAttibutedString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:15] range:wholeString];
self.messageTextView.attributedText = onGoingConferenceCallAttibutedString;
self.messageTextView.tintColor = RiotDesignValues.theme.backgroundColor;
self.messageTextView.tintColor = ThemeService.theme.backgroundColor;
self.messageTextView.hidden = NO;
self.backgroundColor = kRiotColorPinkRed;
@@ -356,7 +356,7 @@
[roomReplacementAttributedString appendAttributedString:roomLinkAttributedString];
NSRange wholeStringRange = NSMakeRange(0, roomReplacementAttributedString.length);
[roomReplacementAttributedString addAttribute:NSForegroundColorAttributeName value:RiotDesignValues.theme.textPrimaryColor range:wholeStringRange];
[roomReplacementAttributedString addAttribute:NSForegroundColorAttributeName value:ThemeService.theme.textPrimaryColor range:wholeStringRange];
self.messageTextView.attributedText = roomReplacementAttributedString;
}
@@ -365,7 +365,7 @@
self.messageTextView.text = NSLocalizedStringFromTable(@"room_replacement_information", @"Vector", nil);
}
self.messageTextView.tintColor = RiotDesignValues.theme.textPrimaryColor;
self.messageTextView.tintColor = ThemeService.theme.textPrimaryColor;
self.messageTextView.hidden = NO;
self.messageTextView.backgroundColor = [UIColor clearColor];
@@ -432,13 +432,13 @@
message2 = [[NSAttributedString alloc] initWithString:NSLocalizedStringFromTable(@"room_resource_usage_limit_reached_message_2", @"Vector", nil)
attributes:@{
NSFontAttributeName: [UIFont boldSystemFontOfSize:fontSize],
NSForegroundColorAttributeName: RiotDesignValues.theme.backgroundColor
NSForegroundColorAttributeName: ThemeService.theme.backgroundColor
}];
}
NSDictionary *attributes = @{
NSFontAttributeName: [UIFont systemFontOfSize:fontSize],
NSForegroundColorAttributeName: RiotDesignValues.theme.backgroundColor
NSForegroundColorAttributeName: ThemeService.theme.backgroundColor
};
NSDictionary *messageContact2LinkAttributes;
@@ -482,7 +482,7 @@
[attributedText appendAttributedString:messageContact3];
self.messageTextView.attributedText = attributedText;
self.messageTextView.tintColor = RiotDesignValues.theme.backgroundColor;
self.messageTextView.tintColor = ThemeService.theme.backgroundColor;
self.messageTextView.hidden = NO;
if (hardLimit)
@@ -535,7 +535,7 @@
[self.messageTextView resignFirstResponder];
self.messageTextView.hidden = YES;
self.messageLabel.textColor = RiotDesignValues.theme.textSecondaryColor;
self.messageLabel.textColor = ThemeService.theme.textSecondaryColor;
objc_removeAssociatedObjects(self.messageTextView);
}