mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 14:46:56 +02:00
Reskin: Use the new [RiotDesignValues applyStyleOnNavigationBar:] method everywhere
Note that we do not change anymore the bar tint color when changing tabs. This is alwasy the same.
This commit is contained in:
@@ -97,8 +97,8 @@
|
||||
|
||||
- (void)userInterfaceThemeDidChange
|
||||
{
|
||||
self.view.backgroundColor = kRiotPrimaryBgColor;
|
||||
self.defaultBarTintColor = kRiotSecondaryBgColor;
|
||||
[RiotDesignValues applyStyleOnNavigationBar:self.navigationController.navigationBar];
|
||||
|
||||
self.barTitleColor = kRiotPrimaryTextColor;
|
||||
self.activityIndicator.backgroundColor = kRiotOverlayColor;
|
||||
|
||||
@@ -282,19 +282,9 @@
|
||||
UINavigationController *usersDevicesNavigationController = [[RiotNavigationController alloc] init];
|
||||
|
||||
// Set Riot navigation bar colors
|
||||
[RiotDesignValues applyStyleOnNavigationBar:usersDevicesNavigationController.navigationBar];
|
||||
usersDevicesNavigationController.navigationBar.barTintColor = kRiotPrimaryBgColor;
|
||||
NSDictionary<NSString *,id> *titleTextAttributes = usersDevicesNavigationController.navigationBar.titleTextAttributes;
|
||||
if (titleTextAttributes)
|
||||
{
|
||||
NSMutableDictionary *textAttributes = [NSMutableDictionary dictionaryWithDictionary:titleTextAttributes];
|
||||
textAttributes[NSForegroundColorAttributeName] = kRiotPrimaryTextColor;
|
||||
usersDevicesNavigationController.navigationBar.titleTextAttributes = textAttributes;
|
||||
}
|
||||
else if (kRiotPrimaryTextColor)
|
||||
{
|
||||
usersDevicesNavigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: kRiotPrimaryTextColor};
|
||||
}
|
||||
|
||||
|
||||
[usersDevicesNavigationController pushViewController:usersDevicesViewController animated:NO];
|
||||
|
||||
[self presentViewController:usersDevicesNavigationController animated:YES completion:nil];
|
||||
|
||||
Reference in New Issue
Block a user