changed name of theme for textBox

This commit is contained in:
Chumva 2018-02-14 10:58:16 +02:00
parent 53a0f26103
commit 5b9639c58d
2 changed files with 2 additions and 3 deletions

View file

@ -96,7 +96,7 @@
<item name="android:statusBarColor">@color/status_bar_route_light</item> <item name="android:statusBarColor">@color/status_bar_route_light</item>
</style> </style>
<style name="Widget.Styled.DarkActionBarTitle" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"> <style name="TextAppearance.App.DarkTextInputLayout" parent="@android:style/TextAppearance">
<item name="android:textColor">@color/color_dialog_buttons_dark</item> <item name="android:textColor">@color/color_dialog_buttons_dark</item>
</style> </style>

View file

@ -62,9 +62,8 @@ public class RenameMarkerBottomSheetDialogFragment extends BottomSheetDialogFrag
if (nightMode) { if (nightMode) {
nameEditText.setTextColor(ContextCompat.getColor(mapActivity, R.color.color_white)); nameEditText.setTextColor(ContextCompat.getColor(mapActivity, R.color.color_white));
if (textBox instanceof TextInputLayout) { if (textBox instanceof TextInputLayout) {
((TextInputLayout) textBox).setHintTextAppearance(R.style.Widget_Styled_DarkActionBarTitle); ((TextInputLayout) textBox).setHintTextAppearance(R.style.TextAppearance_App_DarkTextInputLayout);
} else if (textBox instanceof OsmandTextFieldBoxes) { } else if (textBox instanceof OsmandTextFieldBoxes) {
((OsmandTextFieldBoxes) textBox).activate(true);
((OsmandTextFieldBoxes) textBox).setPrimaryColor(ContextCompat.getColor(mapActivity,R.color.color_dialog_buttons_dark)); ((OsmandTextFieldBoxes) textBox).setPrimaryColor(ContextCompat.getColor(mapActivity,R.color.color_dialog_buttons_dark));
} }
} }