diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index f59f2bfb5b..7611f7f773 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -1,7 +1,7 @@ - #c5d2e6 + #c5d2e6 #3db878 #3a9f73 #14c45d diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index 39c49ea0b5..bafb90c191 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -95,9 +95,9 @@ - diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/RenameMarkerBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/RenameMarkerBottomSheetDialogFragment.java index 17b638084c..c8560dc443 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/RenameMarkerBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/RenameMarkerBottomSheetDialogFragment.java @@ -62,7 +62,7 @@ public class RenameMarkerBottomSheetDialogFragment extends BottomSheetDialogFrag if (nightMode) { nameEditText.setTextColor(ContextCompat.getColor(mapActivity, R.color.color_white)); if (textBox instanceof TextInputLayout) { - ((TextInputLayout) textBox).setHintTextAppearance(R.style.OsmandDarkTheme_MarkerFragment); + ((TextInputLayout) textBox).setHintTextAppearance(R.style.Widget_Styled_DarkActionBarTitle); } else if (textBox instanceof OsmandTextFieldBoxes) { ((OsmandTextFieldBoxes) textBox).activate(true); ((OsmandTextFieldBoxes) textBox).setPrimaryColor(ContextCompat.getColor(mapActivity,R.color.color_dialog_buttons_dark)); diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java index 46c840863f..bc866ddf3a 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java @@ -1,6 +1,7 @@ package net.osmand.plus.views.mapwidgets; import android.graphics.drawable.Drawable; +import android.support.v4.content.ContextCompat; import android.support.v4.graphics.drawable.DrawableCompat; import android.support.v7.widget.SwitchCompat; import android.view.View; @@ -418,7 +419,9 @@ public class MapInfoWidgetsFactory { view.updateVisibility(switchCompat, topBarSwitchVisible); if (topBarSwitchVisible) { switchCompat.setChecked(topBarSwitchChecked); - view.setTopBarSwitchTrackColor(switchCompat, topBarSwitchChecked); + if (topBarSwitchChecked) { + DrawableCompat.setTint(switchCompat.getTrackDrawable(), ContextCompat.getColor(switchCompat.getContext(),R.color.map_toolbar_switch_track_color)); + } } if (view.getShadowView() != null) { view.getShadowView().setVisibility(View.VISIBLE); @@ -568,13 +571,6 @@ public class MapInfoWidgetsFactory { return false; } - public void setTopBarSwitchTrackColor(View v, boolean active) { - SwitchCompat switchCompat = (SwitchCompat) v; - if (active) { - DrawableCompat.setTint(switchCompat.getTrackDrawable(), map.getResources().getColor(R.color.switch_track_color_measure_instruments)); - } - } - private void initToolbar(TopToolbarController controller) { backButton.setOnClickListener(controller.onBackButtonClickListener); topBarTitleLayout.setOnClickListener(controller.onTitleClickListener);