Merge branch 'feature/5999_fix_button_color_invite' into 'develop'

MESSENGER-5999 fix button color in darkmode

See merge request bwmessenger/bundesmessenger/bundesmessenger-ios!356
This commit is contained in:
JanNiklas Grabowski
2024-04-16 06:48:05 +00:00

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