Skip to content

Commit

Permalink
Set the button color to white when in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cozzin committed Oct 10, 2020
1 parent 5382f75 commit bf8a18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OAuth/FirebaseOAuthUI/FUIOAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ + (FUIOAuth *)appleAuthProvider {
fromBundleNameOrNil:@"FirebaseOAuthUI"];
UIColor *buttonColor = [UIColor blackColor];
UIColor *buttonTextColor = [UIColor whiteColor];
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) {
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
iconImage = [iconImage imageWithTintColor:[UIColor blackColor]];
buttonColor = [UIColor whiteColor];
buttonTextColor = [UIColor blackColor];
Expand Down

0 comments on commit bf8a18f

Please sign in to comment.