This repository was archived by the owner on Jul 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
java/com/zulip/android/activities Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ protected void onCreate(Bundle savedInstanceState) {
317
317
sendBtn = (ImageView ) findViewById (R .id .send_btn );
318
318
cameraBtn = (ImageView ) findViewById (R .id .camera_btn );
319
319
appBarLayout = (AppBarLayout ) findViewById (R .id .appBarLayout );
320
+ boolean isCurrentThemeNight = (AppCompatDelegate .getDefaultNightMode () == AppCompatDelegate .MODE_NIGHT_YES );
320
321
etSearchPeople = (EditText ) findViewById (R .id .people_drawer_search );
321
322
ivSearchPeopleCancel = (ImageView ) findViewById (R .id .iv_people__search_cancel_button );
322
323
onTextChangeOfPeopleSearchEditText ();
@@ -328,6 +329,10 @@ public void onClick(View v) {
328
329
}
329
330
});
330
331
etSearchStream = (EditText ) findViewById (R .id .stream_drawer_search );
332
+ if (isCurrentThemeNight ) {
333
+ etSearchPeople .setTextColor (ContextCompat .getColor (this , R .color .color_text_black ));
334
+ etSearchStream .setTextColor (ContextCompat .getColor (this , R .color .color_text_black ));
335
+ }
331
336
ivSearchStreamCancel = (ImageView ) findViewById (R .id .iv_stream_search_cancel_button );
332
337
onTextChangeOfStreamSearchEditText ();
333
338
ivSearchStreamCancel .setOnClickListener (new View .OnClickListener () {
Original file line number Diff line number Diff line change 12
12
<color name =" colorTextPrimary" >@android:color/primary_text_dark</color >
13
13
<color name =" colorTextSecondary" >@android:color/secondary_text_dark</color >
14
14
<color name =" colorTextTertiary" >@android:color/tertiary_text_dark</color >
15
+ <color name =" color_text_black" >#000000</color >
15
16
<color name =" windowBackground" >#616161</color >
16
17
<color name =" listBackground" >#262626</color >
17
18
<color name =" loadingBackground" >#757575</color >
You can’t perform that action at this time.
0 commit comments