MESSENGER-5999 fix button color in darkmode

This commit is contained in:
JanNiklas Grabowski
2024-04-15 16:41:04 +02:00
parent 23a695f930
commit 03cf4e3f35

View File

@@ -82,10 +82,20 @@
[self.leftButton.layer setCornerRadius:5];
self.leftButton.clipsToBounds = YES;
self.leftButton.backgroundColor = ThemeService.shared.theme.tintColor;
// BWI: #5999 fix text color for button in dark mode
if (!BWIBuildSettings.shared.bumLoginFlowLayout)
{
[self.leftButton setTitleColor: ThemeService.shared.theme.backgroundColor forState:UIControlStateNormal];
}
[self.rightButton.layer setCornerRadius:5];
self.rightButton.clipsToBounds = YES;
self.rightButton.backgroundColor = ThemeService.shared.theme.tintColor;
// BWI: #5999 fix text color for button in dark mode
if (!BWIBuildSettings.shared.bumLoginFlowLayout)
{
[self.rightButton setTitleColor: ThemeService.shared.theme.backgroundColor forState:UIControlStateNormal];
}
}
- (void)refreshDisplay