diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/ObjectivesFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/ObjectivesFragment.kt index d4d0c628a9..5b412076b5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/ObjectivesFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/ObjectivesFragment.kt @@ -233,7 +233,7 @@ class ObjectivesFragment : DaggerFragment() { } } holder.binding.accomplished.text = rh.gs(R.string.accomplished, dateUtil.dateAndTimeString(objective.accomplishedOn)) - holder.binding.accomplished.setTextColor(-0x3e3e3f) + holder.binding.accomplished.setTextColor(rh.gac(context,R.attr.defaultTextColor)) holder.binding.verify.setOnClickListener { receiverStatusStore.updateNetworkStatus() if (binding.fake.isChecked) { 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 28cf943774..5d571e61a9 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 @@ -5,8 +5,9 @@ import android.app.NotificationManager import android.content.ActivityNotFoundException import android.content.Context import android.content.Intent -import android.graphics.Color import android.graphics.Paint +import android.graphics.PorterDuff +import android.graphics.PorterDuffColorFilter import android.graphics.drawable.AnimationDrawable import android.os.Build import android.os.Bundle @@ -560,9 +561,17 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList binding.buttonsLayout.calibrationButton.visibility = (xDripIsBgSource && actualBG != null && sp.getBoolean(R.string.key_show_calibration_button, true)).toVisibility() if (dexcomIsSource) { binding.buttonsLayout.cgmButton.setCompoundDrawablesWithIntrinsicBounds(null, rh.gd(R.drawable.ic_byoda), null, null) + for (drawable in binding.buttonsLayout.cgmButton.compoundDrawables) { + drawable?.mutate() + drawable?.colorFilter = PorterDuffColorFilter(rh.gac( context,R.attr.cgmdexColor ), PorterDuff.Mode.SRC_IN) + } binding.buttonsLayout.cgmButton.setTextColor(rh.gac(context, R.attr.cgmdexColor)) } else if (xDripIsBgSource) { binding.buttonsLayout.cgmButton.setCompoundDrawablesWithIntrinsicBounds(null, rh.gd(R.drawable.ic_xdrip), null, null) + for (drawable in binding.buttonsLayout.cgmButton.compoundDrawables) { + drawable?.mutate() + drawable?.colorFilter = PorterDuffColorFilter(rh.gac( context,R.attr.cgmxdripColor ), PorterDuff.Mode.SRC_IN) + } binding.buttonsLayout.cgmButton.setTextColor(rh.gac(context, R.attr.cgmxdripColor)) } binding.buttonsLayout.cgmButton.visibility = (sp.getBoolean(R.string.key_show_cgm_button, false) && (xDripIsBgSource || dexcomIsSource)).toVisibility() diff --git a/app/src/main/res/drawable/ic_chevron_left_black_24dp.xml b/app/src/main/res/drawable/ic_chevron_left_black_24dp.xml index e6bb3ca920..493503f72f 100644 --- a/app/src/main/res/drawable/ic_chevron_left_black_24dp.xml +++ b/app/src/main/res/drawable/ic_chevron_left_black_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable/ic_chevron_right_black_24dp.xml b/app/src/main/res/drawable/ic_chevron_right_black_24dp.xml index 24835127dd..8e87477ed5 100644 --- a/app/src/main/res/drawable/ic_chevron_right_black_24dp.xml +++ b/app/src/main/res/drawable/ic_chevron_right_black_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable/ic_exit_to_app.xml b/app/src/main/res/drawable/ic_exit_to_app.xml index 37a6c7d058..049c0af2c2 100644 --- a/app/src/main/res/drawable/ic_exit_to_app.xml +++ b/app/src/main/res/drawable/ic_exit_to_app.xml @@ -5,8 +5,8 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> + android:fillColor="?attr/defaultTextColor"/> diff --git a/app/src/main/res/drawable/ic_last_page_black_24dp.xml b/app/src/main/res/drawable/ic_last_page_black_24dp.xml index 0d04354c14..964248be45 100644 --- a/app/src/main/res/drawable/ic_last_page_black_24dp.xml +++ b/app/src/main/res/drawable/ic_last_page_black_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable/ic_settings.xml b/app/src/main/res/drawable/ic_settings.xml index 9553b51a99..2c771e2896 100644 --- a/app/src/main/res/drawable/ic_settings.xml +++ b/app/src/main/res/drawable/ic_settings.xml @@ -2,7 +2,6 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" - android:tint="@color/white" android:viewportHeight="24" android:viewportWidth="24"> - diff --git a/app/src/main/res/layout/bgsource_item.xml b/app/src/main/res/layout/bgsource_item.xml index 84ca85d0b4..03929f1f05 100644 --- a/app/src/main/res/layout/bgsource_item.xml +++ b/app/src/main/res/layout/bgsource_item.xml @@ -5,6 +5,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" + card_view:cardElevation="0dp" card_view:cardBackgroundColor="?attr/cardItemBackgroundColor" card_view:cardUseCompatPadding="true"> diff --git a/core/src/main/res/drawable/ic_danar_useropt.xml b/core/src/main/res/drawable/ic_danar_useropt.xml index 04edfa4d71..c19c55f8bc 100644 --- a/core/src/main/res/drawable/ic_danar_useropt.xml +++ b/core/src/main/res/drawable/ic_danar_useropt.xml @@ -5,8 +5,8 @@ android:viewportHeight="24"> + android:fillColor="?attr/userOptionColor"/> + android:fillColor="?attr/userOptionColor"/> diff --git a/core/src/main/res/drawable/ic_doubledown.xml b/core/src/main/res/drawable/ic_doubledown.xml index 6bccc9cb47..1831a2a50b 100644 --- a/core/src/main/res/drawable/ic_doubledown.xml +++ b/core/src/main/res/drawable/ic_doubledown.xml @@ -5,8 +5,8 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_doubleup.xml b/core/src/main/res/drawable/ic_doubleup.xml index 9c56d4cf85..8c6fa77a88 100644 --- a/core/src/main/res/drawable/ic_doubleup.xml +++ b/core/src/main/res/drawable/ic_doubleup.xml @@ -5,8 +5,8 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_flat.xml b/core/src/main/res/drawable/ic_flat.xml index 487a647f10..7850e66a80 100644 --- a/core/src/main/res/drawable/ic_flat.xml +++ b/core/src/main/res/drawable/ic_flat.xml @@ -5,5 +5,5 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_fortyfivedown.xml b/core/src/main/res/drawable/ic_fortyfivedown.xml index 673a965fe4..3d3d34ddc2 100644 --- a/core/src/main/res/drawable/ic_fortyfivedown.xml +++ b/core/src/main/res/drawable/ic_fortyfivedown.xml @@ -5,5 +5,5 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_fortyfiveup.xml b/core/src/main/res/drawable/ic_fortyfiveup.xml index cb3fa33a08..88ab0c27ce 100644 --- a/core/src/main/res/drawable/ic_fortyfiveup.xml +++ b/core/src/main/res/drawable/ic_fortyfiveup.xml @@ -5,5 +5,5 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_invalid.xml b/core/src/main/res/drawable/ic_invalid.xml index bdda131e7d..4770718fd2 100644 --- a/core/src/main/res/drawable/ic_invalid.xml +++ b/core/src/main/res/drawable/ic_invalid.xml @@ -5,14 +5,14 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> + android:fillColor="?attr/defaultTextColor"/> + android:fillColor="?attr/defaultTextColor"/> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_singledown.xml b/core/src/main/res/drawable/ic_singledown.xml index bc3a0e7501..6d18d79036 100644 --- a/core/src/main/res/drawable/ic_singledown.xml +++ b/core/src/main/res/drawable/ic_singledown.xml @@ -5,5 +5,5 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/drawable/ic_singleup.xml b/core/src/main/res/drawable/ic_singleup.xml index 6dda71fc74..b5e179d12d 100644 --- a/core/src/main/res/drawable/ic_singleup.xml +++ b/core/src/main/res/drawable/ic_singleup.xml @@ -5,5 +5,5 @@ android:viewportHeight="24"> + android:fillColor="?attr/defaultTextColor"/> diff --git a/core/src/main/res/layout/activity_tdd_stats.xml b/core/src/main/res/layout/activity_tdd_stats.xml index 850d7e0e3a..b405ab8a5b 100644 --- a/core/src/main/res/layout/activity_tdd_stats.xml +++ b/core/src/main/res/layout/activity_tdd_stats.xml @@ -3,6 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context="info.nightscout.androidaps.activities.TDDStatsActivity"> @@ -177,14 +178,14 @@ android:layout_width="match_parent" android:layout_height="5dp" /> - + android:text="@string/reload" + app:icon="@drawable/ic_actions_refill" + app:iconTint="@color/ic_actions_refill" /> diff --git a/core/src/main/res/layout/maintenance_import_list_item.xml b/core/src/main/res/layout/maintenance_import_list_item.xml index 1f41782aba..30b58d31f0 100644 --- a/core/src/main/res/layout/maintenance_import_list_item.xml +++ b/core/src/main/res/layout/maintenance_import_list_item.xml @@ -7,6 +7,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" + card_view:cardElevation="0dp" card_view:cardBackgroundColor="?attr/cardItemBackgroundColor"> #FFFF5555 #BBBBBB + + @color/buttonBackground + #C803A9F4 #505050 @@ -88,6 +91,8 @@ #c9bd60 #00d2d2 #E83258 + #00FFFF + #00FFFF #5a595b #D000FF00 @@ -213,6 +218,7 @@ #CF8BFE #FEAF05 #67DFE8 + #6AE86D #323232 diff --git a/core/src/main/res/values-night/styles.xml b/core/src/main/res/values-night/styles.xml index b55dc56cb4..58ffc1b2e7 100644 --- a/core/src/main/res/values-night/styles.xml +++ b/core/src/main/res/values-night/styles.xml @@ -162,7 +162,6 @@ @android:color/transparent @color/dummy_background - @color/white @color/colorInsulinButton @color/colorCarbsButton @@ -203,6 +202,22 @@ @color/announcement @color/question @color/pumpHistory + @color/userOption + + @color/cob + @color/uam + @color/zt + @color/tempbasal + @color/pumpHistory + @color/profileSwitch + @color/white + @color/red + @color/red + @color/blue + @color/mdtp_line_dark + @color/mdtp_line_dark + + @color/inrangebackground + - + @@ -293,6 +313,7 @@ wrap_content center_vertical center + 8dp @dimen/gray_material_button_margin_horizontal @dimen/gray_material_button_margin_horizontal true