mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user