The both button messages use the same color as the tabbar text one.

This commit is contained in:
ylecollen 2015-01-05 17:07:41 +01:00
parent d3ef0de60d
commit 62bb0aad45

View file

@ -120,12 +120,9 @@
[button setTitle:title forState:UIControlStateNormal]; [button setTitle:title forState:UIControlStateNormal];
[button setTitle:title forState:UIControlStateHighlighted]; [button setTitle:title forState:UIControlStateHighlighted];
// default background text color // use the same text color as the tabbar
CGFloat textColorFactor = 146.0 / 255.0; [button setTitleColor:[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor forState:UIControlStateNormal];
UIColor* textColor = [UIColor colorWithRed:textColorFactor green:textColorFactor blue:textColorFactor alpha:1.0]; [button setTitleColor:[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor forState:UIControlStateHighlighted];
[button setTitleColor:textColor forState:UIControlStateNormal];
[button setTitleColor:textColor forState:UIControlStateHighlighted];
// keep the bottomView background color // keep the bottomView background color
button.backgroundColor = [UIColor clearColor]; button.backgroundColor = [UIColor clearColor];