File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
43
43
self.textField = [UITextField new ];
44
44
self.textField .borderStyle = UITextBorderStyleRoundedRect;
45
45
self.textField .font = [UIFont fontWithName: @" HelveticaNeue-Light" size: 16 ];
46
- self.textField .backgroundColor = [UIColor otpLightColor ];
47
46
[self .contentView addSubview: self .textField];
48
47
}
49
48
return self;
Original file line number Diff line number Diff line change @@ -199,7 +199,8 @@ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)ce
199
199
200
200
cell.textLabel .textColor = [UIColor otpForegroundColor ];
201
201
if ([cell isKindOfClass: [OTPTextFieldCell class ]]) {
202
- ((OTPTextFieldCell *)cell).textField .tintColor = [UIColor otpBackgroundColor ];
202
+ ((OTPTextFieldCell *)cell).textField .backgroundColor = [UIColor otpLightColor ];
203
+ ((OTPTextFieldCell *)cell).textField .tintColor = [UIColor otpDarkColor ];
203
204
}
204
205
}
205
206
Original file line number Diff line number Diff line change 27
27
28
28
@interface UIColor (OTP)
29
29
30
+ + (instancetype )otpDarkColor ;
30
31
+ (instancetype )otpLightColor ;
31
32
32
33
+ (instancetype )otpBarBackgroundColor ;
Original file line number Diff line number Diff line change 28
28
29
29
@implementation UIColor (OTP)
30
30
31
- COLOR (darkBlueColor, [UIColor colorWithIntegerRed: 35 green: 35 blue: 50 ])
31
+ COLOR (otpDarkColor, [UIColor colorWithIntegerRed: 35 green: 35 blue: 50 ])
32
32
COLOR(otpLightColor, [UIColor colorWithIntegerRed: 250 green: 248 blue: 240 ])
33
33
34
- COLOR(otpBarBackgroundColor, [UIColor darkBlueColor ])
34
+ COLOR(otpBarBackgroundColor, [UIColor otpDarkColor ])
35
35
COLOR(otpBarForegroundColor, [UIColor otpLightColor ])
36
- COLOR(otpBackgroundColor, [UIColor darkBlueColor ])
36
+ COLOR(otpBackgroundColor, [UIColor otpDarkColor ])
37
37
COLOR(otpForegroundColor, [UIColor otpLightColor ])
38
38
39
39
@end
You can’t perform that action at this time.
0 commit comments