diff --git a/android/res/layout/place_page_buttons.xml b/android/res/layout/place_page_buttons.xml index a5af17dcc0..72ca7806f1 100644 --- a/android/res/layout/place_page_buttons.xml +++ b/android/res/layout/place_page_buttons.xml @@ -7,7 +7,7 @@ android:layout_marginTop="@dimen/margin_base" android:paddingLeft="@dimen/margin_half_plus" android:paddingRight="@dimen/margin_half_plus" - android:background="?panel" + android:background="?ppButtonsBackground" android:clickable="true"> + android:orientation="horizontal" + android:background="?colorPrimary"> + android:orientation="vertical" + android:background="?colorPrimary"> \ No newline at end of file diff --git a/android/res/values/colors.xml b/android/res/values/colors.xml index 7eadecef60..8691d32f2b 100644 --- a/android/res/values/colors.xml +++ b/android/res/values/colors.xml @@ -8,8 +8,8 @@ #B3FFFFFF #4CFFFFFF - #FF209852 - #FF188044 + #FF1F9952 + #FF197E46 #FF1E96F0 #FFFFE68C @@ -28,8 +28,8 @@ #FFFFFFFF #FF32363A @color/base_green - #FF14181C - #FFF4F4F4 + #FF1E2226 + #FFF5F5F5 #FF3C4044 #FFFFFFFF @color/bg_panel_night @@ -43,14 +43,12 @@ #CC2D3237 @color/darker_green - #FF181C21 + #FF000000 #1D414651 #FFFFFFFF - #FF179E4D - @color/base_accent_night @color/base_accent #FFF0F0F0 #FF999999 @@ -62,9 +60,9 @@ #FF757575 #FFFFFFFF - #FF191E23 + @color/bg_panel_night #FFF0F0F0 - #FF111411 + @color/bg_window_night #3D000000 @color/base_accent diff --git a/android/res/values/themes-attrs.xml b/android/res/values/themes-attrs.xml index 1b54ae7c3e..014d8a1236 100644 --- a/android/res/values/themes-attrs.xml +++ b/android/res/values/themes-attrs.xml @@ -17,10 +17,10 @@ + - diff --git a/android/res/values/themes-base.xml b/android/res/values/themes-base.xml index e7ace6c2f2..faad48d132 100644 --- a/android/res/values/themes-base.xml +++ b/android/res/values/themes-base.xml @@ -34,10 +34,10 @@ @color/divider @color/bg_window + ?panel @drawable/bg_place_page_back @drawable/routing_slot_background - ?colorPrimary @drawable/routing_slot_background_pressed @drawable/routing_slot_marker @drawable/routing_start_button @@ -83,11 +83,11 @@ @color/text_light_hint @color/divider_night - @color/bg_window_night + ?panel + @color/bg_window_night @drawable/bg_place_page_back_night @drawable/routing_slot_background_night - ?panel @drawable/routing_slot_background_pressed_night @drawable/routing_slot_marker_night @drawable/routing_start_button_night diff --git a/android/res/values/themes.xml b/android/res/values/themes.xml index 848985e4cc..2613f66bc8 100644 --- a/android/res/values/themes.xml +++ b/android/res/values/themes.xml @@ -16,12 +16,10 @@ + + \ No newline at end of file diff --git a/android/src/com/mapswithme/country/BaseDownloadAdapter.java b/android/src/com/mapswithme/country/BaseDownloadAdapter.java index c57fc6d907..5783371b96 100644 --- a/android/src/com/mapswithme/country/BaseDownloadAdapter.java +++ b/android/src/com/mapswithme/country/BaseDownloadAdapter.java @@ -475,9 +475,8 @@ abstract class BaseDownloadAdapter extends BaseAdapter sizes = getRemoteItemSizes(position); setHolderSizeString(holder, sizes[0], sizes[1]); setHolderPercentText(holder, mStatusNotDownloaded); - setHolderPercentColor(holder, mFragment.getResources().getColor(R.color.downloader_accent)); + setHolderPercentColor(holder, ThemeUtils.getColor(mListView.getContext(), R.attr.colorAccent)); break; - } } diff --git a/android/src/com/mapswithme/maps/routing/RoutingPlanController.java b/android/src/com/mapswithme/maps/routing/RoutingPlanController.java index b59bd50449..a9d5da595f 100644 --- a/android/src/com/mapswithme/maps/routing/RoutingPlanController.java +++ b/android/src/com/mapswithme/maps/routing/RoutingPlanController.java @@ -55,7 +55,7 @@ public class RoutingPlanController extends ToolbarController public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { buttonView.setButtonDrawable(Graphics.tint(mActivity, iconRes, isChecked ? R.attr.colorAccent - : R.attr.iconTintLight)); + : R.attr.iconTint)); } }; @@ -74,14 +74,6 @@ public class RoutingPlanController extends ToolbarController mToggle = (ImageView) mToolbar.findViewById(R.id.toggle); mSlotFrame = (SlotFrame) root.findViewById(R.id.slots); - mSlotFrame.setOnSlotClickListener(new SlotFrame.OnSlotClickListener() - { - @Override - public void OnSlotClick(int slotId) - { - RoutingController.get().searchPoi(slotId); - } - }); View planFrame = root.findViewById(R.id.planning_frame); diff --git a/android/src/com/mapswithme/maps/routing/SlotFrame.java b/android/src/com/mapswithme/maps/routing/SlotFrame.java index b9416e0908..a30a76825b 100644 --- a/android/src/com/mapswithme/maps/routing/SlotFrame.java +++ b/android/src/com/mapswithme/maps/routing/SlotFrame.java @@ -23,7 +23,6 @@ public class SlotFrame extends LinearLayout { private static final int ANIM_SWAP = MwmApplication.get().getResources().getInteger(R.integer.anim_slots_swap); - private OnSlotClickListener mClickListener; private Slot mSlotFrom; private Slot mSlotTo; @@ -35,11 +34,6 @@ public class SlotFrame extends LinearLayout private int mTextColor; private int mHintColor; - public interface OnSlotClickListener - { - void OnSlotClick(int slotId); - } - private class Slot { private final View mFrame; @@ -79,7 +73,7 @@ public class SlotFrame extends LinearLayout @Override public void onClick(View v) { - mClickListener.OnSlotClick(mOrder); + RoutingController.get().searchPoi(mOrder); } }); @@ -221,7 +215,6 @@ public class SlotFrame extends LinearLayout mTextColor = ThemeUtils.getColor(getContext(), android.R.attr.textColorPrimary); mHintColor = ThemeUtils.getColor(getContext(), R.attr.secondary); - setBackgroundColor(ThemeUtils.getColor(getContext(), R.attr.routingSlotFrame)); setBaselineAligned(false); setClipChildren(false); @@ -332,11 +325,6 @@ public class SlotFrame extends LinearLayout super(context, attrs, defStyleAttr); } - public void setOnSlotClickListener(OnSlotClickListener clickListener) - { - mClickListener = clickListener; - } - public void update() { mSlotFrom.setMapObject(RoutingController.get().getStartPoint());