mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 16:22:39 +00:00
The both button messages use the same color as the tabbar text one.
This commit is contained in:
parent
d3ef0de60d
commit
62bb0aad45
1 changed files with 3 additions and 6 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue