Skip to content

Commit adb4f83

Browse files
committed
Use the light color for text field backgrounds
1 parent eca1f43 commit adb4f83

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Authenticator/Classes/OTPTextFieldCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
4343
self.textField = [UITextField new];
4444
self.textField.borderStyle = UITextBorderStyleRoundedRect;
4545
self.textField.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:16];
46+
self.textField.backgroundColor = [UIColor otpLightColor];
4647
[self.contentView addSubview:self.textField];
4748
}
4849
return self;

Authenticator/Classes/UIColor+OTP.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
@interface UIColor (OTP)
2929

30+
+ (instancetype)otpLightColor;
31+
3032
+ (instancetype)otpBarBackgroundColor;
3133
+ (instancetype)otpBarForegroundColor;
3234
+ (instancetype)otpBackgroundColor;

Authenticator/Classes/UIColor+OTP.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
@implementation UIColor (OTP)
3030

3131
COLOR(darkBlueColor, [UIColor colorWithIntegerRed:35 green:35 blue:50])
32-
COLOR(lightColor, [UIColor colorWithIntegerRed:250 green:248 blue:240])
32+
COLOR(otpLightColor, [UIColor colorWithIntegerRed:250 green:248 blue:240])
3333

3434
COLOR(otpBarBackgroundColor, [UIColor darkBlueColor])
35-
COLOR(otpBarForegroundColor, [UIColor lightColor])
35+
COLOR(otpBarForegroundColor, [UIColor otpLightColor])
3636
COLOR(otpBackgroundColor, [UIColor darkBlueColor])
37-
COLOR(otpForegroundColor, [UIColor lightColor])
37+
COLOR(otpForegroundColor, [UIColor otpLightColor])
3838

3939
@end

0 commit comments

Comments
 (0)