summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;