Reskin: Text in badges should be white in dark theme

#2283
This commit is contained in:
manuroe
2019-02-21 13:07:37 +01:00
parent 0d2a18741f
commit a619500e3c
7 changed files with 16 additions and 5 deletions
@@ -819,6 +819,11 @@
if (@available(iOS 10, *))
{
self.tabBar.items[index].badgeColor = badgeColor;
[self.tabBar.items[index] setBadgeTextAttributes:@{
NSForegroundColorAttributeName: ThemeService.shared.theme.baseTextPrimaryColor
}
forState:UIControlStateNormal];
}
}
else
@@ -836,6 +841,11 @@
if (@available(iOS 10, *))
{
self.tabBar.items[index].badgeColor = badgeColor;
[self.tabBar.items[index] setBadgeTextAttributes:@{
NSForegroundColorAttributeName: ThemeService.shared.theme.baseTextPrimaryColor
}
forState:UIControlStateNormal];
}
}
else