mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
The both button messages use the same color as the tabbar text one.
This commit is contained in:
@@ -120,12 +120,9 @@
|
||||
[button setTitle:title forState:UIControlStateNormal];
|
||||
[button setTitle:title forState:UIControlStateHighlighted];
|
||||
|
||||
// default background text color
|
||||
CGFloat textColorFactor = 146.0 / 255.0;
|
||||
UIColor* textColor = [UIColor colorWithRed:textColorFactor green:textColorFactor blue:textColorFactor alpha:1.0];
|
||||
|
||||
[button setTitleColor:textColor forState:UIControlStateNormal];
|
||||
[button setTitleColor:textColor forState:UIControlStateHighlighted];
|
||||
// use the same text color as the tabbar
|
||||
[button setTitleColor:[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor forState:UIControlStateNormal];
|
||||
[button setTitleColor:[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor forState:UIControlStateHighlighted];
|
||||
|
||||
// keep the bottomView background color
|
||||
button.backgroundColor = [UIColor clearColor];
|
||||
|
||||
Reference in New Issue
Block a user