Fix dark theme
This commit is contained in:
parent
1155144b1a
commit
869848b704
2 changed files with 4 additions and 3 deletions
|
@ -304,7 +304,7 @@
|
||||||
android:paddingLeft="@dimen/measurement_tool_button_padding"
|
android:paddingLeft="@dimen/measurement_tool_button_padding"
|
||||||
android:paddingRight="@dimen/measurement_tool_button_padding"
|
android:paddingRight="@dimen/measurement_tool_button_padding"
|
||||||
android:text="@string/shared_string_apply"
|
android:text="@string/shared_string_apply"
|
||||||
android:textColor="?attr/color_dialog_buttons"
|
android:textColor="@color/color_white"
|
||||||
android:textAllCaps="false"
|
android:textAllCaps="false"
|
||||||
android:paddingEnd="@dimen/measurement_tool_button_padding"
|
android:paddingEnd="@dimen/measurement_tool_button_padding"
|
||||||
android:paddingStart="@dimen/measurement_tool_button_padding" />
|
android:paddingStart="@dimen/measurement_tool_button_padding" />
|
||||||
|
|
|
@ -70,8 +70,9 @@ public class RouteBetweenPointsBottomSheetDialogFragment extends BottomSheetDial
|
||||||
nightMode = app.getDaynightHelper().isNightModeForMapControls();
|
nightMode = app.getDaynightHelper().isNightModeForMapControls();
|
||||||
FragmentActivity activity = requireActivity();
|
FragmentActivity activity = requireActivity();
|
||||||
portrait = AndroidUiHelper.isOrientationPortrait(activity);
|
portrait = AndroidUiHelper.isOrientationPortrait(activity);
|
||||||
final View mainView = inflater.inflate(R.layout.fragment_route_between_points_bottom_sheet_dialog,
|
final View mainView = UiUtilities.getInflater(getContext(), nightMode)
|
||||||
container, false);
|
.inflate(R.layout.fragment_route_between_points_bottom_sheet_dialog,
|
||||||
|
container, false);
|
||||||
AndroidUtils.setBackground(activity, mainView, nightMode,
|
AndroidUtils.setBackground(activity, mainView, nightMode,
|
||||||
portrait ? R.drawable.bg_bottom_menu_light : R.drawable.bg_bottom_sheet_topsides_landscape_light,
|
portrait ? R.drawable.bg_bottom_menu_light : R.drawable.bg_bottom_sheet_topsides_landscape_light,
|
||||||
portrait ? R.drawable.bg_bottom_menu_dark : R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
portrait ? R.drawable.bg_bottom_menu_dark : R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
|
|
Loading…
Reference in a new issue