summaryrefslogtreecommitdiff
path: root/src/ios.m
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-07 14:25:26 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-07 14:25:26 +0200
commit9f192d380b98c05a5edd04a99d868875ea342e94 (patch)
treefde5def3f7837d2580f6bd2bd1d268f207730445 /src/ios.m
parent3652671d15ca208b8f1ce23e9ee4e753cb86f1e8 (diff)
iOS: Text field tint colors
Diffstat (limited to 'src/ios.m')
-rw-r--r--src/ios.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ios.m b/src/ios.m
index 559316a2..b2a5bae4 100644
--- a/src/ios.m
+++ b/src/ios.m
@@ -748,10 +748,12 @@ void init_SystemTextInput(iSystemTextInput *d, iRect rect, int flags) {
748 } 748 }
749 UIColor *textColor = makeUIColor_(uiInputTextFocused_ColorId); 749 UIColor *textColor = makeUIColor_(uiInputTextFocused_ColorId);
750 UIColor *backgroundColor = makeUIColor_(uiInputBackgroundFocused_ColorId); 750 UIColor *backgroundColor = makeUIColor_(uiInputBackgroundFocused_ColorId);
751 UIColor *tintColor = makeUIColor_(uiInputCursor_ColorId);
751 [appState_ setSystemTextInput:d]; 752 [appState_ setSystemTextInput:d];
752 if (d->field) { 753 if (d->field) {
753 UITextField *field = REF_d_field; 754 UITextField *field = REF_d_field;
754 [field setTextColor:textColor]; 755 [field setTextColor:textColor];
756 [field setTintColor:tintColor];
755 [field setDelegate:appState_]; 757 [field setDelegate:appState_];
756 [field becomeFirstResponder]; 758 [field becomeFirstResponder];
757 } 759 }
@@ -759,6 +761,7 @@ void init_SystemTextInput(iSystemTextInput *d, iRect rect, int flags) {
759 UITextView *view = REF_d_view; 761 UITextView *view = REF_d_view;
760 [view setTextColor:textColor]; 762 [view setTextColor:textColor];
761 [view setBackgroundColor:backgroundColor]; 763 [view setBackgroundColor:backgroundColor];
764 [view setTintColor:tintColor];
762 [view setEditable:YES]; 765 [view setEditable:YES];
763// [REF_d_view setSelectable:YES]; 766// [REF_d_view setSelectable:YES];
764 const float inset = gap_UI / get_Window()->pixelRatio; 767 const float inset = gap_UI / get_Window()->pixelRatio;