diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerCOB.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerCOB.kt index 82aa8cd6f1..6d07ef1188 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerCOB.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerCOB.kt @@ -77,7 +77,7 @@ class TriggerCOB(injector: HasAndroidInjector) : Trigger(injector) { override fun friendlyDescription(): String = resourceHelper.gs(R.string.cobcompared, resourceHelper.gs(comparator.value.stringRes), cob.value) - override fun icon(): Optional = Optional.of(R.drawable.icon_cp_bolus_carbs) + override fun icon(): Optional = Optional.of(R.drawable.ic_cp_bolus_carbs) override fun duplicate(): Trigger = TriggerCOB(injector, this) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt index be9370d27c..a5d21ba956 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt @@ -679,9 +679,9 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList ?: resourceHelper.gc(R.color.defaulttextcolor)) if (activeTemp != null) - overview_basebasal_icon.setImageResource(if (activeTemp.tempBasalConvertedToPercent(System.currentTimeMillis(), profile) > 100) R.drawable.icon_cp_basal_tbr_high else R.drawable.icon_cp_basal_tbr_low) + overview_basebasal_icon.setImageResource(if (activeTemp.tempBasalConvertedToPercent(System.currentTimeMillis(), profile) > 100) R.drawable.ic_cp_basal_tbr_high else R.drawable.ic_cp_basal_tbr_low) else - overview_basebasal_icon.setImageResource(R.drawable.icon_cp_basal_no_tbr) + overview_basebasal_icon.setImageResource(R.drawable.ic_cp_basal_no_tbr) // Extended bolus val extendedBolus = treatmentsPlugin.getExtendedBolusFromHistory(System.currentTimeMillis()) diff --git a/app/src/main/res/drawable/anim_carbs.xml b/app/src/main/res/drawable/anim_carbs.xml index 28ae262b46..f3b7c5cc7f 100644 --- a/app/src/main/res/drawable/anim_carbs.xml +++ b/app/src/main/res/drawable/anim_carbs.xml @@ -1,6 +1,6 @@ - - + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_actions_cancelextbolus.xml b/app/src/main/res/drawable/ic_actions_cancelextbolus.xml new file mode 100644 index 0000000000..da158703a1 --- /dev/null +++ b/app/src/main/res/drawable/ic_actions_cancelextbolus.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_actions_startextbolus.xml b/app/src/main/res/drawable/ic_actions_startextbolus.xml new file mode 100644 index 0000000000..6436cad1d7 --- /dev/null +++ b/app/src/main/res/drawable/ic_actions_startextbolus.xml @@ -0,0 +1,9 @@ + + + + diff --git a/app/src/main/res/drawable/ic_bolus.xml b/app/src/main/res/drawable/ic_bolus.xml new file mode 100644 index 0000000000..752e99ce35 --- /dev/null +++ b/app/src/main/res/drawable/ic_bolus.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_calculator.xml b/app/src/main/res/drawable/ic_calculator.xml new file mode 100644 index 0000000000..300e971bf4 --- /dev/null +++ b/app/src/main/res/drawable/ic_calculator.xml @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_calibration.xml b/app/src/main/res/drawable/ic_calibration.xml new file mode 100644 index 0000000000..26511d7cbf --- /dev/null +++ b/app/src/main/res/drawable/ic_calibration.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_cp_basal_no_tbr.xml b/app/src/main/res/drawable/ic_cp_basal_no_tbr.xml new file mode 100644 index 0000000000..71abd83757 --- /dev/null +++ b/app/src/main/res/drawable/ic_cp_basal_no_tbr.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_cp_basal_tbr_high.xml b/app/src/main/res/drawable/ic_cp_basal_tbr_high.xml new file mode 100644 index 0000000000..140ba3ad92 --- /dev/null +++ b/app/src/main/res/drawable/ic_cp_basal_tbr_high.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_cp_basal_tbr_low.xml b/app/src/main/res/drawable/ic_cp_basal_tbr_low.xml new file mode 100644 index 0000000000..53ce1c5c6c --- /dev/null +++ b/app/src/main/res/drawable/ic_cp_basal_tbr_low.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_cp_bolus_carbs.xml b/app/src/main/res/drawable/ic_cp_bolus_carbs.xml new file mode 100644 index 0000000000..e21b236b4e --- /dev/null +++ b/app/src/main/res/drawable/ic_cp_bolus_carbs.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_cp_bolus_carbs_red.xml b/app/src/main/res/drawable/ic_cp_bolus_carbs_red.xml new file mode 100644 index 0000000000..c6206204cf --- /dev/null +++ b/app/src/main/res/drawable/ic_cp_bolus_carbs_red.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_quickwizard.xml b/app/src/main/res/drawable/ic_quickwizard.xml new file mode 100644 index 0000000000..b2d1f2569b --- /dev/null +++ b/app/src/main/res/drawable/ic_quickwizard.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml b/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml index b094d56057..9484c2cd6f 100644 --- a/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml +++ b/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml @@ -6,5 +6,4 @@ android:viewportWidth="24" xmlns:android="http://schemas.android.com/apk/res/android"> - diff --git a/app/src/main/res/drawable/ic_xdrip.xml b/app/src/main/res/drawable/ic_xdrip.xml new file mode 100644 index 0000000000..54f88823ba --- /dev/null +++ b/app/src/main/res/drawable/ic_xdrip.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/icon_insulin_carbs.xml b/app/src/main/res/drawable/icon_insulin_carbs.xml index 6dcd511598..5268a2eb70 100644 --- a/app/src/main/res/drawable/icon_insulin_carbs.xml +++ b/app/src/main/res/drawable/icon_insulin_carbs.xml @@ -1,5 +1,5 @@ - - + + \ No newline at end of file diff --git a/app/src/main/res/layout/actions_fragment.xml b/app/src/main/res/layout/actions_fragment.xml index 0290c1cf8a..ce86d871ea 100644 --- a/app/src/main/res/layout/actions_fragment.xml +++ b/app/src/main/res/layout/actions_fragment.xml @@ -91,7 +91,7 @@ style="@style/ButtonSmallFontStyle" android:layout_width="0dp" android:layout_height="wrap_content" - android:drawableTop="@drawable/icon_actions_startextbolus" + android:drawableTop="@drawable/ic_actions_startextbolus" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/overview_extendedbolus_button" @@ -106,7 +106,7 @@ style="@style/ButtonSmallFontStyle" android:layout_width="0dp" android:layout_height="wrap_content" - android:drawableTop="@drawable/icon_actions_cancelextbolus" + android:drawableTop="@drawable/ic_actions_cancelextbolus" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/overview_extendedbolus_cancel_button" diff --git a/app/src/main/res/layout/careportal_fragment.xml b/app/src/main/res/layout/careportal_fragment.xml index d4f79965a5..1f2da353da 100644 --- a/app/src/main/res/layout/careportal_fragment.xml +++ b/app/src/main/res/layout/careportal_fragment.xml @@ -152,7 +152,7 @@ style="@style/ButtonSmallFontStyle" android:layout_width="0dp" android:layout_height="fill_parent" - android:drawableTop="@drawable/icon_cp_bolus_carbs" + android:drawableTop="@drawable/ic_cp_bolus_carbs" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/careportal_carbscorrection" diff --git a/app/src/main/res/layout/dialog_calibration.xml b/app/src/main/res/layout/dialog_calibration.xml index 1dbd83bd40..5cf87640eb 100644 --- a/app/src/main/res/layout/dialog_calibration.xml +++ b/app/src/main/res/layout/dialog_calibration.xml @@ -26,7 +26,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/overview_calibration" - android:src="@drawable/icon_calibration" /> + android:src="@drawable/ic_calibration" /> + android:src="@drawable/ic_cp_bolus_carbs" /> + android:src="@drawable/ic_actions_startextbolus" /> @@ -57,7 +57,7 @@ android:layout_height="fill_parent" android:layout_marginEnd="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_cp_bolus_carbs" + android:drawableTop="@drawable/ic_cp_bolus_carbs" android:text="@string/overview_carbs_label" android:textColor="@color/colorCarbsButton" android:textSize="10sp" /> @@ -69,7 +69,7 @@ android:layout_height="fill_parent" android:layout_marginEnd="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_calculator" + android:drawableTop="@drawable/ic_calculator" android:text="@string/overview_calculator_label" android:textColor="@color/colorCalculatorButton" android:textSize="10sp" /> @@ -81,7 +81,7 @@ android:layout_height="fill_parent" android:layout_marginEnd="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_calibration" + android:drawableTop="@drawable/ic_calibration" android:text="@string/overview_calibration" android:textColor="@color/colorCalibrationButton" android:textSize="10sp" @@ -94,7 +94,7 @@ android:layout_height="fill_parent" android:layout_marginEnd="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_xdrip" + android:drawableTop="@drawable/ic_xdrip" android:text="@string/overview_cgm" android:textColor="@color/colorCalibrationButton" android:textSize="10sp" @@ -107,7 +107,7 @@ android:layout_height="fill_parent" android:layout_marginEnd="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_quickwizard" + android:drawableTop="@drawable/ic_quickwizard" android:text="@string/quickwizard" android:textColor="@color/colorQuickWizardButton" android:textSize="10sp" /> diff --git a/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml b/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml index 5c4340eea6..85920acfd0 100644 --- a/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml +++ b/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml @@ -512,7 +512,7 @@ android:layout_height="fill_parent" android:layout_marginRight="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_cp_bolus_carbs" + android:drawableTop="@drawable/ic_cp_bolus_carbs" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/overview_carbs_label" @@ -527,7 +527,7 @@ android:layout_height="fill_parent" android:layout_marginRight="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_calculator" + android:drawableTop="@drawable/ic_calculator" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/overview_calculator_label" @@ -542,7 +542,7 @@ android:layout_height="fill_parent" android:layout_marginRight="-4dp" android:layout_weight="0.5" - android:drawableTop="@drawable/icon_quickwizard" + android:drawableTop="@drawable/ic_quickwizard" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="Quick wizard" diff --git a/app/src/main/res/layout/overview_info_layout.xml b/app/src/main/res/layout/overview_info_layout.xml index 2d1adfc257..ecc5ee7183 100644 --- a/app/src/main/res/layout/overview_info_layout.xml +++ b/app/src/main/res/layout/overview_info_layout.xml @@ -112,7 +112,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:src="@drawable/icon_bolus" /> + android:src="@drawable/ic_bolus" /> + android:src="@drawable/ic_cp_basal_no_tbr" /> + android:src="@drawable/ic_actions_startextbolus" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/actions_startextbolus.svg b/icons/actions_startextbolus.svg new file mode 100644 index 0000000000..5b5b57d634 --- /dev/null +++ b/icons/actions_startextbolus.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/bolus.svg b/icons/bolus.svg new file mode 100644 index 0000000000..7afcbe0dfa --- /dev/null +++ b/icons/bolus.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/calculator.svg b/icons/calculator.svg new file mode 100644 index 0000000000..51033925b5 --- /dev/null +++ b/icons/calculator.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/calibration.svg b/icons/calibration.svg new file mode 100644 index 0000000000..75d9d9be9a --- /dev/null +++ b/icons/calibration.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/cp_basal_no_tbr.svg b/icons/cp_basal_no_tbr.svg new file mode 100644 index 0000000000..970cede3cd --- /dev/null +++ b/icons/cp_basal_no_tbr.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/cp_basal_tbr_high.svg b/icons/cp_basal_tbr_high.svg new file mode 100644 index 0000000000..de6ff777ce --- /dev/null +++ b/icons/cp_basal_tbr_high.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/cp_basal_tbr_low.svg b/icons/cp_basal_tbr_low.svg new file mode 100644 index 0000000000..c7459314a8 --- /dev/null +++ b/icons/cp_basal_tbr_low.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/cp_bolus_carbs.svg b/icons/cp_bolus_carbs.svg new file mode 100644 index 0000000000..867515d55a --- /dev/null +++ b/icons/cp_bolus_carbs.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/quickwizard.svg b/icons/quickwizard.svg new file mode 100644 index 0000000000..e84fda2d37 --- /dev/null +++ b/icons/quickwizard.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/x_swap_vert.svg b/icons/x_swap_vert.svg index a09d1324a4..9a9087c413 100644 --- a/icons/x_swap_vert.svg +++ b/icons/x_swap_vert.svg @@ -7,6 +7,4 @@ - diff --git a/icons/xdrip.svg b/icons/xdrip.svg new file mode 100644 index 0000000000..a0b9c3ecdd --- /dev/null +++ b/icons/xdrip.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +