Skip to content

Commit 49a5ab5

Browse files
authored
Merge pull request #22 from MacroYau/patch/theming-setter
Fix theming setters for TOPasscodeView
2 parents 88f9fdf + 9e51c67 commit 49a5ab5

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

‎TOPasscodeViewController/TOPasscodeViewController.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ - (void)setInputProgressViewTintColor:(UIColor *)inputProgressViewTintColor
589589

590590
- (UIColor *)inputProgressViewTintColor { return self.passcodeView.inputProgressViewTintColor; }
591591

592-
- (void)setkeypadButtonBackgroundTintColor:(UIColor *)keypadButtonBackgroundTintColor
592+
- (void)setKeypadButtonBackgroundTintColor:(UIColor *)keypadButtonBackgroundTintColor
593593
{
594594
self.passcodeView.keypadButtonBackgroundColor = keypadButtonBackgroundTintColor;
595595
}

‎TOPasscodeViewController/Views/Main/TOPasscodeView.m‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,41 @@ - (void)setStyle:(TOPasscodeViewStyle)style
544544
[self applyThemeForStyle:style];
545545
}
546546

547+
- (void)setTitleLabelColor:(UIColor *)titleLabelColor
548+
{
549+
if (titleLabelColor == _titleLabelColor) { return; }
550+
_titleLabelColor = titleLabelColor;
551+
self.titleLabel.textColor = titleLabelColor;
552+
}
553+
554+
- (void)setInputProgressViewTintColor:(UIColor *)inputProgressViewTintColor
555+
{
556+
if (inputProgressViewTintColor == _inputProgressViewTintColor) { return; }
557+
_inputProgressViewTintColor = inputProgressViewTintColor;
558+
self.inputField.tintColor = inputProgressViewTintColor;
559+
}
560+
561+
- (void)setKeypadButtonBackgroundColor:(UIColor *)keypadButtonBackgroundColor
562+
{
563+
if (keypadButtonBackgroundColor == _keypadButtonBackgroundColor) { return; }
564+
_keypadButtonBackgroundColor = keypadButtonBackgroundColor;
565+
self.keypadView.buttonBackgroundColor = keypadButtonBackgroundColor;
566+
}
567+
568+
- (void)setKeypadButtonTextColor:(UIColor *)keypadButtonTextColor
569+
{
570+
if (keypadButtonTextColor == _keypadButtonTextColor) { return; }
571+
_keypadButtonTextColor = keypadButtonTextColor;
572+
self.keypadView.buttonTextColor = keypadButtonTextColor;
573+
}
574+
575+
- (void)setKeypadButtonHighlightedTextColor:(UIColor *)keypadButtonHighlightedTextColor
576+
{
577+
if (keypadButtonHighlightedTextColor == _keypadButtonHighlightedTextColor) { return; }
578+
_keypadButtonHighlightedTextColor = keypadButtonHighlightedTextColor;
579+
self.keypadView.buttonHighlightedTextColor = keypadButtonHighlightedTextColor;
580+
}
581+
547582
- (void)setLeftButton:(UIButton *)leftButton
548583
{
549584
if (leftButton == _leftButton) { return; }

0 commit comments

Comments
 (0)