зеркало из https://github.com/nextcloud/talk-ios.git
Set color to conversations-placeholder icon.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
be652b9b0d
Коммит
77cbfe5618
|
@ -45,6 +45,7 @@ extern BOOL const customNavigationLogo;
|
|||
+ (UIColor *)themeColor;
|
||||
+ (UIColor *)themeTextColor;
|
||||
+ (NSString *)navigationLogoImageName;
|
||||
+ (UIColor *)placeholderColor;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -91,4 +91,9 @@ BOOL const useServerThemimg = YES;
|
|||
return imageName;
|
||||
}
|
||||
|
||||
+ (UIColor *)placeholderColor
|
||||
{
|
||||
return [UIColor colorWithRed: 0.84 green: 0.84 blue: 0.84 alpha: 1.00]; // #d5d5d5
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#import "RoomSearchTableViewController.h"
|
||||
|
||||
#import "NCAPIController.h"
|
||||
#import "NCAppBranding.h"
|
||||
#import "NCRoom.h"
|
||||
#import "NCSettingsController.h"
|
||||
#import "NSDate+DateTools.h"
|
||||
|
@ -48,6 +49,8 @@
|
|||
// Contacts placeholder view
|
||||
_roomSearchBackgroundView = [[PlaceholderView alloc] init];
|
||||
[_roomSearchBackgroundView.placeholderImage setImage:[UIImage imageNamed:@"conversations-placeholder"]];
|
||||
_roomSearchBackgroundView.placeholderImage.image = [_roomSearchBackgroundView.placeholderImage.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
[_roomSearchBackgroundView.placeholderImage setTintColor:[NCAppBranding placeholderColor]];
|
||||
[_roomSearchBackgroundView.placeholderText setText:NSLocalizedString(@"No results found", nil)];
|
||||
[_roomSearchBackgroundView.placeholderView setHidden:YES];
|
||||
[_roomSearchBackgroundView.loadingView startAnimating];
|
||||
|
|
|
@ -107,6 +107,8 @@ typedef void (^FetchRoomsCompletionBlock)(BOOL success);
|
|||
// Rooms placeholder view
|
||||
_roomsBackgroundView = [[PlaceholderView alloc] init];
|
||||
[_roomsBackgroundView.placeholderImage setImage:[UIImage imageNamed:@"conversations-placeholder"]];
|
||||
_roomsBackgroundView.placeholderImage.image = [_roomsBackgroundView.placeholderImage.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
[_roomsBackgroundView.placeholderImage setTintColor:[NCAppBranding placeholderColor]];
|
||||
[_roomsBackgroundView.placeholderText setText:NSLocalizedString(@"You are not part of any conversation. Press + to start a new one.", nil)];
|
||||
[_roomsBackgroundView.placeholderView setHidden:YES];
|
||||
[_roomsBackgroundView.loadingView startAnimating];
|
||||
|
|
|
@ -160,6 +160,8 @@
|
|||
// Rooms placeholder view
|
||||
_roomsBackgroundView = [[PlaceholderView alloc] init];
|
||||
[_roomsBackgroundView.placeholderImage setImage:[UIImage imageNamed:@"conversations-placeholder"]];
|
||||
_roomsBackgroundView.placeholderImage.image = [_roomsBackgroundView.placeholderImage.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
[_roomsBackgroundView.placeholderImage setTintColor:[NCAppBranding placeholderColor]];
|
||||
[_roomsBackgroundView.placeholderText setText:NSLocalizedString(@"You are not part of any conversation", nil)];
|
||||
[_roomsBackgroundView.placeholderView setHidden:(_rooms.count > 0)];
|
||||
[_roomsBackgroundView.loadingView setHidden:YES];
|
||||
|
@ -167,6 +169,8 @@
|
|||
|
||||
_roomSearchBackgroundView = [[PlaceholderView alloc] init];
|
||||
[_roomSearchBackgroundView.placeholderImage setImage:[UIImage imageNamed:@"conversations-placeholder"]];
|
||||
_roomSearchBackgroundView.placeholderImage.image = [_roomSearchBackgroundView.placeholderImage.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
[_roomSearchBackgroundView.placeholderImage setTintColor:[NCAppBranding placeholderColor]];
|
||||
[_roomSearchBackgroundView.placeholderText setText:NSLocalizedString(@"No results found", nil)];
|
||||
[_roomSearchBackgroundView.placeholderView setHidden:YES];
|
||||
[_roomSearchBackgroundView.loadingView setHidden:YES];
|
||||
|
|
Загрузка…
Ссылка в новой задаче