Skip to content

Commit e4f33d6

Browse files
committed
Used named colors instead of RGBA values
1 parent 2e96ba2 commit e4f33d6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

OAuth/FirebaseOAuthUI/FUIOAuth.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ - (instancetype)initWithAuthUI:(FUIAuth *)authUI
123123
_signInLabel = buttonLabelText;
124124
_shortName = shortName;
125125
_buttonBackgroundColor = buttonColor;
126-
_buttonTextColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];
126+
_buttonTextColor = [UIColor whiteColor];
127127
_icon = iconImage;
128128
_scopes = scopes;
129129
_customParameters = customParameters;
@@ -192,13 +192,13 @@ + (FUIOAuth *)yahooAuthProvider {
192192

193193
+ (FUIOAuth *)appleAuthProvider {
194194
UIImage *iconImage = [FUIAuthUtils imageNamed:@"ic_apple"
195-
fromBundleNameOrNil:@"FirebaseOAuthUI"];
196-
UIColor *buttonColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
197-
UIColor *buttonTextColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];
195+
fromBundleNameOrNil:@"FirebaseOAuthUI"];
196+
UIColor *buttonColor = [UIColor blackColor];
197+
UIColor *buttonTextColor = [UIColor whiteColor];
198198
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) {
199-
iconImage = [iconImage imageWithTintColor:[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0]];
200-
buttonColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];
201-
buttonTextColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
199+
iconImage = [iconImage imageWithTintColor:[UIColor blackColor]];
200+
buttonColor = [UIColor whiteColor];
201+
buttonTextColor = [UIColor blackColor];
202202
}
203203
FUIOAuth *provider = [[FUIOAuth alloc] initWithAuthUI:[FUIAuth defaultAuthUI]
204204
providerID:@"apple.com"

0 commit comments

Comments
 (0)