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:
manuroe
2018-11-29 17:31:41 +01:00
parent c688d88282
commit 5beaa454db
40 changed files with 94 additions and 167 deletions
@@ -1139,18 +1139,7 @@
phoneNumberPickerNavigationController = [[RiotNavigationController alloc] init];
// Set Riot navigation bar colors
phoneNumberPickerNavigationController.navigationBar.barTintColor = kRiotPrimaryBgColor;
NSDictionary<NSString *,id> *titleTextAttributes = phoneNumberPickerNavigationController.navigationBar.titleTextAttributes;
if (titleTextAttributes)
{
NSMutableDictionary *textAttributes = [NSMutableDictionary dictionaryWithDictionary:titleTextAttributes];
textAttributes[NSForegroundColorAttributeName] = kRiotPrimaryTextColor;
phoneNumberPickerNavigationController.navigationBar.titleTextAttributes = textAttributes;
}
else if (kRiotPrimaryTextColor)
{
phoneNumberPickerNavigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: kRiotPrimaryTextColor};
}
[RiotDesignValues applyStyleOnNavigationBar:phoneNumberPickerNavigationController.navigationBar];
[phoneNumberPickerNavigationController pushViewController:phoneNumberCountryPicker animated:NO];