diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index bbc16d841d..f76743bc4f 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -411,6 +411,7 @@ public class OverviewFragment extends Fragment { if (Config.APS) { apsModeView.setVisibility(View.VISIBLE); apsModeView.setBackgroundResource(R.drawable.loopmodeborder); + apsModeView.setTextColor(Color.BLACK); final LoopPlugin activeloop = MainApp.getConfigBuilder().getActiveLoop(); if(activeloop != null && activeloop.isEnabled(activeloop.getType())) { if (MainApp.getConfigBuilder().isClosedModeEnabled()) { @@ -421,6 +422,8 @@ public class OverviewFragment extends Fragment { } else { apsModeView.setBackgroundResource(R.drawable.loopmodedisabledborder); apsModeView.setText(MainApp.sResources.getString(R.string.disabledloop)); + apsModeView.setTextColor(Color.WHITE); + } diff --git a/app/src/main/res/drawable/pillborder.xml b/app/src/main/res/drawable/pillborder.xml new file mode 100644 index 0000000000..63e4eb57eb --- /dev/null +++ b/app/src/main/res/drawable/pillborder.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/overview_fragment.xml b/app/src/main/res/layout/overview_fragment.xml index 1a51056709..55b2132d2c 100644 --- a/app/src/main/res/layout/overview_fragment.xml +++ b/app/src/main/res/layout/overview_fragment.xml @@ -79,11 +79,12 @@ android:textAppearance="?android:attr/textAppearanceSmall" /> + android:gravity="center_vertical|center_horizontal" + android:background="@drawable/pillborder" + android:textAppearance="?android:attr/textAppearanceMedium" />