diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index a163b3729c..54c7295df1 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -55,6 +55,7 @@
android:resource="@xml/automotive_app_desc" />
@@ -62,7 +63,8 @@
-
+
@@ -72,12 +74,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
MODE_NIGHT_YES
+ sp.getString(R.string.value_light_theme, "light") -> MODE_NIGHT_NO
+ else -> MODE_NIGHT_FOLLOW_SYSTEM
+ }
+ AppCompatDelegate.setDefaultNightMode(mode)
+ }
+
+ override fun onStop() {
+ compositeDisposable.dispose()
+ }
+}
diff --git a/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt b/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt
index 090b9ae07d..4e9d5539b2 100644
--- a/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt
+++ b/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt
@@ -50,6 +50,8 @@ class SetupWizardActivity : NoSplashAppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
+ // temp while switch is not public
+ setTheme(R.style.AppTheme)
update(applicationContext)
binding = ActivitySetupwizardBinding.inflate(layoutInflater)
setContentView(binding.root)
diff --git a/app/src/main/res/layout/actions_fragment.xml b/app/src/main/res/layout/actions_fragment.xml
index e8362b0524..d7b04c933f 100644
--- a/app/src/main/res/layout/actions_fragment.xml
+++ b/app/src/main/res/layout/actions_fragment.xml
@@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:background="?attr/fragmentbackground"
tools:context=".plugins.general.actions.ActionsFragment">
diff --git a/app/src/main/res/layout/activity_logsetting.xml b/app/src/main/res/layout/activity_logsetting.xml
index 303a9fd6df..cb1573ecf8 100644
--- a/app/src/main/res/layout/activity_logsetting.xml
+++ b/app/src/main/res/layout/activity_logsetting.xml
@@ -16,7 +16,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 6edf1fa105..cf57888fd5 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -11,7 +11,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
- android:background="@color/colorPrimary"
+ android:background="?attr/colorPrimary"
app:contentInsetEndWithActions="48dp"
app:contentInsetStartWithNavigation="48dp"
android:elevation="4dp">
@@ -21,9 +21,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
- app:tabIndicatorColor="@color/tabSelectedTextColor"
- app:tabTextColor="@color/tabTextColor"
- app:tabSelectedTextColor="@color/tabSelectedTextColor"
+ app:tabIndicatorColor="?attr/tabSelectedTextColor"
+ app:tabTextColor="?attr/tabTextColor"
+ app:tabSelectedTextColor="?attr/tabSelectedTextColor"
app:tabMode="scrollable" />
@@ -58,8 +58,8 @@
app:itemBackground="?attr/selectableItemBackground"
android:fitsSystemWindows="true"
android:layout_gravity="start"
- app:itemIconTint="@android:color/white"
- app:itemTextColor="@android:color/white"/>
+ app:itemIconTint="?android:textColorPrimary"
+ app:itemTextColor="?android:textColorPrimary"/>
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml
index eef88c7bad..d4a7c61fc7 100644
--- a/app/src/main/res/layout/activity_preferences.xml
+++ b/app/src/main/res/layout/activity_preferences.xml
@@ -9,6 +9,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/filter"
+ android:textColorHint="?attr/colorOnPrimary"
app:endIconMode="clear_text">
+ android:inputType="text"
+ android:background="@color/transparent"/>
diff --git a/app/src/main/res/layout/activity_profilehelper.xml b/app/src/main/res/layout/activity_profilehelper.xml
index d87aca5296..1b41867d16 100644
--- a/app/src/main/res/layout/activity_profilehelper.xml
+++ b/app/src/main/res/layout/activity_profilehelper.xml
@@ -16,7 +16,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
- android:background="@color/defaultbackground"
+ android:background="?attr/defaultbackground"
android:orientation="horizontal">
+ android:textColorHint="?attr/tabBgColorSelected"
+ app:boxStrokeColor="?attr/tabBgColorSelected">
@@ -112,6 +113,7 @@
android:id="@+id/tdd"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/tdd_total" />
@@ -134,6 +136,7 @@
android:id="@+id/weight"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/weight_label" />
@@ -205,8 +208,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/selected_profile"
- android:textColorHint="@color/white"
- app:boxStrokeColor="@color/white">
+ app:boxStrokeColor="?attr/boxStrokeColor">
+ app:boxStrokeColor="?attr/boxStrokeColor">
@@ -74,8 +73,7 @@
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:onClick="showPreviousPage"
- android:text="@string/previous_button"
- android:textColor="#FFFFFF" />
+ android:text="@string/previous_button" />
+ android:text="@string/next_button" />
+ android:text="@string/setupwizard_finish" />
diff --git a/app/src/main/res/layout/activity_smscommunicator_otp.xml b/app/src/main/res/layout/activity_smscommunicator_otp.xml
index cfa5865277..3150637eb0 100644
--- a/app/src/main/res/layout/activity_smscommunicator_otp.xml
+++ b/app/src/main/res/layout/activity_smscommunicator_otp.xml
@@ -105,7 +105,7 @@
android:layout_marginRight="10dp"
android:layout_marginBottom="3dp"
android:text="@string/smscommunicator_otp_reset_btn"
- android:textColor="@color/colorTreatmentButton" />
+ android:textColor="?attr/treatmentButton" />
diff --git a/app/src/main/res/layout/activity_stats.xml b/app/src/main/res/layout/activity_stats.xml
index 7f86726f55..9a604679f0 100644
--- a/app/src/main/res/layout/activity_stats.xml
+++ b/app/src/main/res/layout/activity_stats.xml
@@ -16,7 +16,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/app/src/main/res/layout/bgsource_item.xml b/app/src/main/res/layout/bgsource_item.xml
index 764a3cdda1..84ca85d0b4 100644
--- a/app/src/main/res/layout/bgsource_item.xml
+++ b/app/src/main/res/layout/bgsource_item.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- card_view:cardBackgroundColor="@color/cardColorBackground"
+ card_view:cardBackgroundColor="?attr/cardItemBackgroundColor"
card_view:cardUseCompatPadding="true">
+ android:textColor="?attr/setTempButton" />
-
+ android:textColor="?attr/alarmColor" />
diff --git a/app/src/main/res/layout/careportal_stats_fragment.xml b/app/src/main/res/layout/careportal_stats_fragment.xml
index 13725255d8..e5d724cc09 100644
--- a/app/src/main/res/layout/careportal_stats_fragment.xml
+++ b/app/src/main/res/layout/careportal_stats_fragment.xml
@@ -38,7 +38,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -112,7 +110,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -133,7 +130,6 @@
android:layout_marginEnd="20dp"
android:gravity="center_vertical"
android:paddingStart="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -188,7 +184,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -263,7 +257,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/app/src/main/res/layout/careportal_stats_fragment_lowres.xml b/app/src/main/res/layout/careportal_stats_fragment_lowres.xml
index 7cd144893c..da803e3354 100644
--- a/app/src/main/res/layout/careportal_stats_fragment_lowres.xml
+++ b/app/src/main/res/layout/careportal_stats_fragment_lowres.xml
@@ -29,7 +29,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -40,7 +39,6 @@
android:layout_marginEnd="20dp"
android:gravity="center_vertical"
android:paddingStart="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -85,7 +83,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -96,7 +93,6 @@
android:layout_marginEnd="20dp"
android:gravity="center_vertical"
android:paddingStart="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -141,7 +137,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -197,7 +191,6 @@
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/app/src/main/res/layout/dialog_alert_import_summary.xml b/app/src/main/res/layout/dialog_alert_import_summary.xml
index 2c3290f75e..e3b94f19fe 100644
--- a/app/src/main/res/layout/dialog_alert_import_summary.xml
+++ b/app/src/main/res/layout/dialog_alert_import_summary.xml
@@ -33,7 +33,7 @@
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:text="@string/check_preferences_details_btn"
- android:textColor="@color/colorTreatmentButton"
+ android:textColor="?attr/treatmentButton"
android:visibility="gone" />
diff --git a/app/src/main/res/layout/dialog_alert_two_messages.xml b/app/src/main/res/layout/dialog_alert_two_messages.xml
index 0a8f2232db..70e1bf0d2f 100644
--- a/app/src/main/res/layout/dialog_alert_two_messages.xml
+++ b/app/src/main/res/layout/dialog_alert_two_messages.xml
@@ -14,6 +14,6 @@
android:paddingEnd="5dp"
android:text="@string/password_preferences_decrypt_prompt"
android:textAppearance="?android:attr/textAppearanceSmall"
- android:textColor="@color/colorAccent" />
+ android:textColor="?android:colorAccent" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_calibration.xml b/app/src/main/res/layout/dialog_calibration.xml
index 9698f5311e..45c65d5d8f 100644
--- a/app/src/main/res/layout/dialog_calibration.xml
+++ b/app/src/main/res/layout/dialog_calibration.xml
@@ -19,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/app/src/main/res/layout/dialog_carbs.xml b/app/src/main/res/layout/dialog_carbs.xml
index b112f2706f..0455f7c3ae 100644
--- a/app/src/main/res/layout/dialog_carbs.xml
+++ b/app/src/main/res/layout/dialog_carbs.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
@@ -109,7 +109,7 @@
-
+
-
+
@@ -158,6 +159,7 @@
android:layout_width="130dp"
android:layout_height="40dp"
android:layout_gravity="center_horizontal"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/careportal_newnstreatment_duration_label" />
@@ -100,6 +100,7 @@
android:id="@+id/bg"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/treatments_wizard_bg_label" />
@@ -67,6 +67,7 @@
android:id="@+id/insulin"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/overview_insulin_label" />
diff --git a/app/src/main/res/layout/dialog_insulin.xml b/app/src/main/res/layout/dialog_insulin.xml
index bf12a1f911..536d530ca8 100644
--- a/app/src/main/res/layout/dialog_insulin.xml
+++ b/app/src/main/res/layout/dialog_insulin.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
@@ -90,7 +90,8 @@
android:id="@+id/time"
android:layout_width="130dp"
android:layout_height="40dp"
- app:customContentDescription="@string/time_offset"/>
+ android:layout_marginBottom="2dp"
+ app:customContentDescription="@string/time_offset" />
diff --git a/app/src/main/res/layout/dialog_profileswitch.xml b/app/src/main/res/layout/dialog_profileswitch.xml
index d23d548961..7a24040bd5 100644
--- a/app/src/main/res/layout/dialog_profileswitch.xml
+++ b/app/src/main/res/layout/dialog_profileswitch.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
@@ -111,7 +111,8 @@
android:id="@+id/duration"
android:layout_width="130dp"
android:layout_height="40dp"
- app:customContentDescription="@string/careportal_newnstreatment_duration_label"/>
+ android:layout_marginBottom="2dp"
+ app:customContentDescription="@string/careportal_newnstreatment_duration_label" />
+ android:layout_marginBottom="2dp"
+ app:customContentDescription="@string/careportal_newnstreatment_percentage_label" />
@@ -68,6 +68,7 @@
android:id="@+id/basal_percent_input"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/basal_rate" />
@@ -68,7 +68,7 @@
android:id="@+id/temptarget"
android:layout_width="130dp"
android:layout_height="40dp"
- android:layout_gravity="center_vertical"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/target_label" />
diff --git a/app/src/main/res/layout/dialog_treatment.xml b/app/src/main/res/layout/dialog_treatment.xml
index ff4d473cf0..e087f99dd3 100644
--- a/app/src/main/res/layout/dialog_treatment.xml
+++ b/app/src/main/res/layout/dialog_treatment.xml
@@ -18,9 +18,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
- android:padding="5dp">
+ android:padding="5dp"
+ android:layout_marginBottom="5dp">
+ android:text="@string/do_not_bolus_record_only"
+ tools:visibility="gone"/>
@@ -77,6 +79,7 @@
android:id="@+id/insulin"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/overview_insulin_label" />
@@ -72,6 +72,7 @@
android:id="@+id/bg_input"
android:layout_width="130dp"
android:layout_height="40dp"
+ android:layout_marginBottom="2dp"
app:customContentDescription="@string/a11y_current_bg" />
diff --git a/app/src/main/res/layout/dialog_wizardinfo.xml b/app/src/main/res/layout/dialog_wizardinfo.xml
index 0d31a7e900..52eccb6d84 100644
--- a/app/src/main/res/layout/dialog_wizardinfo.xml
+++ b/app/src/main/res/layout/dialog_wizardinfo.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/app/src/main/res/layout/food_item.xml b/app/src/main/res/layout/food_item.xml
index 46227278a0..9899d83d23 100644
--- a/app/src/main/res/layout/food_item.xml
+++ b/app/src/main/res/layout/food_item.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- card_view:cardBackgroundColor="@color/cardColorBackground">
+ card_view:cardBackgroundColor="?attr/cardItemBackgroundColor">
diff --git a/app/src/main/res/layout/loop_fragment.xml b/app/src/main/res/layout/loop_fragment.xml
index 5f3fdffff1..98525ce294 100644
--- a/app/src/main/res/layout/loop_fragment.xml
+++ b/app/src/main/res/layout/loop_fragment.xml
@@ -49,7 +49,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -96,7 +95,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -142,7 +140,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -188,7 +185,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -234,7 +230,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -280,7 +275,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -326,7 +320,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -372,7 +365,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -418,7 +410,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -464,7 +455,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -510,7 +500,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/app/src/main/res/layout/maintenance_fragment.xml b/app/src/main/res/layout/maintenance_fragment.xml
index eed3be06d2..ff9ae43fd4 100644
--- a/app/src/main/res/layout/maintenance_fragment.xml
+++ b/app/src/main/res/layout/maintenance_fragment.xml
@@ -30,7 +30,7 @@
android:layout_marginBottom="3dp"
android:layout_weight="0.5"
android:text="@string/nav_logsettings"
- android:textColor="@color/colorTreatmentButton" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
diff --git a/app/src/main/res/layout/ns_client_fragment.xml b/app/src/main/res/layout/ns_client_fragment.xml
index 6b41c455d5..7d91e7fdf2 100644
--- a/app/src/main/res/layout/ns_client_fragment.xml
+++ b/app/src/main/res/layout/ns_client_fragment.xml
@@ -111,7 +111,7 @@
android:layout_weight="1"
android:text="@string/clearlog"
android:textAlignment="center"
- android:textColor="@android:color/holo_orange_light"
+ android:textColor="?attr/actionButton"
android:textStyle="normal|bold" />
diff --git a/app/src/main/res/layout/number_picker_layout_vertical.xml b/app/src/main/res/layout/number_picker_layout_vertical.xml
index 1fa7d911d7..240333831f 100644
--- a/app/src/main/res/layout/number_picker_layout_vertical.xml
+++ b/app/src/main/res/layout/number_picker_layout_vertical.xml
@@ -3,19 +3,17 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="60dp"
android:layout_height="100dp"
- android:background="@drawable/background_darkgray"
+ android:background="@drawable/background_total"
android:orientation="vertical">
+ android:textSize="20sp" />
+ android:textColor="?attr/numPickerText"
+ android:text="1" />
+ android:text="—"
+ android:textStyle="bold" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/objectives_exam_fragment.xml b/app/src/main/res/layout/objectives_exam_fragment.xml
index dfeacb90d0..b5fd8b70b9 100644
--- a/app/src/main/res/layout/objectives_exam_fragment.xml
+++ b/app/src/main/res/layout/objectives_exam_fragment.xml
@@ -37,7 +37,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:background="#3C3C3C"
+ android:background="?attr/objectivesBackgroundColor"
android:orientation="horizontal"
android:padding="4dp"
app:layout_constraintTop_toBottomOf="@+id/exam_disabledto">
@@ -106,7 +106,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Disabled until:"
- android:textColor="#FF5722"
+ android:textColor="?attr/objectivesDisabledTextColor"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/exam_hints" />
@@ -116,7 +116,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
- android:background="#3C3C3C"
+ android:background="?attr/objectivesBackgroundColor"
android:orientation="horizontal"
android:padding="4dp"
app:layout_constraintStart_toStartOf="parent"
diff --git a/app/src/main/res/layout/objectives_item.xml b/app/src/main/res/layout/objectives_item.xml
index d081fcfe03..7ea4fea232 100644
--- a/app/src/main/res/layout/objectives_item.xml
+++ b/app/src/main/res/layout/objectives_item.xml
@@ -8,7 +8,7 @@
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_marginRight="16dp"
- app:cardBackgroundColor="@color/cardColorBackground"
+ app:cardBackgroundColor="?attr/cardItemBackgroundColor"
app:cardCornerRadius="2dp"
app:cardUseCompatPadding="true"
app:contentPadding="16dp">
@@ -23,7 +23,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium"
- android:textColor="#FFFFFF"
android:textSize="20sp"
tools:text="1. Title" />
@@ -32,7 +31,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:textColor="#FFFFFF"
tools:text="Objective" />
@@ -125,7 +122,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:textColor="#FFFFFF"
tools:text="Accomplished" />
diff --git a/app/src/main/res/layout/openapsama_fragment.xml b/app/src/main/res/layout/openapsama_fragment.xml
index 1da988ac91..099997d324 100644
--- a/app/src/main/res/layout/openapsama_fragment.xml
+++ b/app/src/main/res/layout/openapsama_fragment.xml
@@ -56,7 +56,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -82,7 +81,6 @@
android:gravity="center_horizontal"
android:paddingEnd="5dp"
android:text="@string/openapsma_inputparameters_label"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -128,7 +126,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -174,7 +171,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -220,7 +216,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -266,7 +261,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -312,7 +306,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -358,7 +351,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -404,7 +396,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -430,7 +421,6 @@
android:gravity="center_horizontal"
android:paddingEnd="5dp"
android:text="@string/result"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -485,7 +475,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -531,7 +520,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -577,7 +565,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/app/src/main/res/layout/overview_buttons_layout.xml b/app/src/main/res/layout/overview_buttons_layout.xml
index 9414b63c91..e356e89efb 100644
--- a/app/src/main/res/layout/overview_buttons_layout.xml
+++ b/app/src/main/res/layout/overview_buttons_layout.xml
@@ -15,7 +15,7 @@
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="@string/setbasalquestion"
- android:textColor="@color/colorAcceptTempButton"
+ android:textColor="?attr/acceptTempButtonColor"
android:visibility="gone" />
@@ -59,7 +59,7 @@
android:layout_weight="0.5"
android:drawableTop="@drawable/ic_bolus"
android:text="@string/overview_insulin_label"
- android:textColor="@color/colorInsulinButton"
+ android:textColor="?attr/insulinButtonColor"
android:textSize="10sp"
tools:ignore="SmallSp" />
@@ -72,7 +72,7 @@
android:layout_weight="0.5"
android:drawableTop="@drawable/ic_cp_bolus_carbs"
android:text="@string/treatments_wizard_carbs_label"
- android:textColor="@color/colorCarbsButton"
+ android:textColor="?attr/carbsButtonColor"
android:textSize="10sp"
tools:ignore="SmallSp" />
@@ -85,7 +85,7 @@
android:layout_weight="0.5"
android:drawableTop="@drawable/ic_calculator"
android:text="@string/overview_calculator_label"
- android:textColor="@color/colorCalculatorButton"
+ android:textColor="?attr/calculatorButtonColor"
android:textSize="10sp"
tools:ignore="SmallSp" />
@@ -98,7 +98,7 @@
android:layout_weight="0.5"
android:drawableTop="@drawable/ic_calibration"
android:text="@string/overview_calibration"
- android:textColor="@color/colorCalibrationButton"
+ android:textColor="?attr/calibrationButtonColor"
android:textSize="10sp"
android:visibility="gone"
tools:ignore="SmallSp" />
@@ -112,7 +112,7 @@
android:layout_weight="0.5"
android:drawableTop="@drawable/ic_xdrip"
android:text="@string/overview_cgm"
- android:textColor="@color/colorCalibrationButton"
+ android:textColor="?attr/calibrationButtonColor"
android:textSize="10sp"
android:visibility="gone"
tools:ignore="SmallSp" />
@@ -127,7 +127,7 @@
android:drawableTop="@drawable/ic_quick_wizard"
android:text="@string/quickwizard"
android:hint="@string/quickwizard"
- android:textColor="@color/colorQuickWizardButton"
+ android:textColor="?attr/quickWizardButtonColor"
android:textSize="10sp"
tools:ignore="SmallSp" />
diff --git a/app/src/main/res/layout/overview_editquickwizard_dialog.xml b/app/src/main/res/layout/overview_editquickwizard_dialog.xml
index b032ddebb9..5c405bfab1 100644
--- a/app/src/main/res/layout/overview_editquickwizard_dialog.xml
+++ b/app/src/main/res/layout/overview_editquickwizard_dialog.xml
@@ -14,7 +14,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/app/src/main/res/layout/overview_fragment.xml b/app/src/main/res/layout/overview_fragment.xml
index 092464e219..d39ac7a4ea 100644
--- a/app/src/main/res/layout/overview_fragment.xml
+++ b/app/src/main/res/layout/overview_fragment.xml
@@ -56,7 +56,6 @@
android:hint="temp target"
android:text="@string/notavailable"
android:textAppearance="?android:attr/textAppearanceSmall"
- android:textColor="@color/mdtp_white"
tools:ignore="HardcodedText" />
@@ -88,7 +87,6 @@
android:paddingStart="4sp"
android:paddingEnd="4sp"
android:text="Pump: running"
- android:textColor="@android:color/white"
android:textSize="16sp"
tools:ignore="HardcodedText" />
@@ -100,7 +98,6 @@
android:paddingStart="4sp"
android:paddingEnd="4sp"
android:text="OpenAPS: 3 min ago"
- android:textColor="@android:color/white"
android:textSize="16sp"
tools:ignore="HardcodedText" />
@@ -112,7 +109,6 @@
android:paddingStart="4sp"
android:paddingEnd="4sp"
android:text="Uploader: 84%"
- android:textColor="@android:color/white"
android:textSize="16sp"
tools:ignore="HardcodedText" />
diff --git a/app/src/main/res/layout/overview_notification_item.xml b/app/src/main/res/layout/overview_notification_item.xml
index 23d103abeb..aba885b816 100644
--- a/app/src/main/res/layout/overview_notification_item.xml
+++ b/app/src/main/res/layout/overview_notification_item.xml
@@ -7,7 +7,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="1dp"
- card_view:cardBackgroundColor="@color/notificationUrgent"
+ card_view:cardBackgroundColor="?attr/notificationUrgent"
card_view:cardCornerRadius="6dp">
@@ -53,7 +53,7 @@
android:paddingStart="10dp"
android:text="Sample button text"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
- android:textColor="@color/cardObjectiveText"
+ android:textColor="?attr/cardObjectiveText"
android:textStyle="normal|bold"
tools:ignore="HardcodedText,RtlSymmetry" />
@@ -64,7 +64,7 @@
android:paddingStart="10dp"
android:text="36g"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
- android:textColor="@color/cardObjectiveText"
+ android:textColor="?attr/cardObjectiveText"
android:textStyle="normal|bold"
tools:ignore="HardcodedText,RtlSymmetry" />
diff --git a/app/src/main/res/layout/treatments_bolus_carbs_item.xml b/app/src/main/res/layout/treatments_bolus_carbs_item.xml
index 266eb3d939..137c5f2b77 100644
--- a/app/src/main/res/layout/treatments_bolus_carbs_item.xml
+++ b/app/src/main/res/layout/treatments_bolus_carbs_item.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- card_view:cardBackgroundColor="@color/cardColorBackground">
+ card_view:cardBackgroundColor="?attr/cardItemBackgroundColor">
+ android:textColor="?attr/alarmColor" />
diff --git a/app/src/main/res/layout/treatments_extendedbolus_item.xml b/app/src/main/res/layout/treatments_extendedbolus_item.xml
index 8b381c97e4..ed771d1cca 100644
--- a/app/src/main/res/layout/treatments_extendedbolus_item.xml
+++ b/app/src/main/res/layout/treatments_extendedbolus_item.xml
@@ -81,7 +81,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:text="PH"
- android:textColor="@color/colorSetTempButton"
+ android:textColor="?attr/setTempButton"
tools:ignore="HardcodedText" />
@@ -151,7 +151,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:text="@string/invalid"
- android:textColor="@android:color/holo_red_light" />
+ android:textColor="?attr/alarmColor" />
+ android:minHeight="?attr/actionBarSize" />
diff --git a/app/src/main/res/layout/treatments_tempbasals_item.xml b/app/src/main/res/layout/treatments_tempbasals_item.xml
index 4a89a943fb..cbbb4d57ab 100644
--- a/app/src/main/res/layout/treatments_tempbasals_item.xml
+++ b/app/src/main/res/layout/treatments_tempbasals_item.xml
@@ -79,7 +79,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:text="E"
- android:textColor="@color/colorSetExtendedButton"
+ android:textColor="?attr/setExtendedButtonColor"
tools:ignore="HardcodedText,RtlSymmetry" />
+ android:textColor="?attr/alarmColor" />
@@ -145,7 +145,7 @@
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/invalid"
- android:textColor="@android:color/holo_red_light" />
+ android:textColor="?attr/alarmColor" />
+ android:textColor="?attr/treatmentButton" />
+ android:textColor="?attr/treatmentButton" />
diff --git a/app/src/main/res/menu/menu_delete_selection.xml b/app/src/main/res/menu/menu_delete_selection.xml
index 1090412c5a..be03cd47cd 100644
--- a/app/src/main/res/menu/menu_delete_selection.xml
+++ b/app/src/main/res/menu/menu_delete_selection.xml
@@ -4,7 +4,7 @@
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 0e006e2bbf..771a2e7a73 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -147,4 +147,16 @@
- 4
+
+ - @string/dark_theme
+ - @string/light_theme
+ - @string/follow_system_theme
+
+
+
+ - @string/value_dark_theme
+ - @string/value_light_theme
+ - @string/value_system_theme
+
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
deleted file mode 100644
index 96670d632b..0000000000
--- a/app/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
- #ff00ff
- #00d2d2
- #1ea3e5
- #FFFFFF
- #d3f166
- #00EEEE
- #FFFFFF00
- #FFFF00FF
- #FFFF00
- #FF666666
- #FF0000
- #7484E2
- #2800FF00
- #C83F51B5
- #757575
- #ff1a1a
- #77dd77
- #66FC0000
- @color/colorPrimaryDark
-
- #77dd77
- #67DFE8
-
-
- #779ECB
-
- #f4d700
- #67dfe8
- #67dfe8
- #ffae01
- #e93057
- #67e86a
- #ffae01
- #FF478EFF
- #FFDD7792
- #ca77dd
-
- #de7550
- #25912e
-
- #c8666666
- #7200FF00
- #72FF0000
- #72000000
-
- #000000
-
-
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a74713b29f..834e146a4f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1178,6 +1178,15 @@
clone current profile
delete current profile
add new to list
+
+ Choose dark, light, or to follow the system theme
+ App Color Scheme
+ Dark theme
+ Light theme
+ Use device theme
+ dark
+ light
+ system
Temptarget unknown preset: %1$s
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
deleted file mode 100644
index 10908bbc1b..0000000000
--- a/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/xml/pref_general.xml b/app/src/main/res/xml/pref_general.xml
index 55bc0a30fa..abede4e252 100644
--- a/app/src/main/res/xml/pref_general.xml
+++ b/app/src/main/res/xml/pref_general.xml
@@ -101,6 +101,15 @@
android:key="@string/key_skin"
android:title="@string/skin" />
+
+
diff --git a/automation/src/main/res/layout/automation_action_item.xml b/automation/src/main/res/layout/automation_action_item.xml
index da8d4f2526..a63d9437a0 100644
--- a/automation/src/main/res/layout/automation_action_item.xml
+++ b/automation/src/main/res/layout/automation_action_item.xml
@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="@color/ribbonDefault"
+ android:background="?attr/ribbonDefaultColor"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingLeft="4dp"
diff --git a/automation/src/main/res/layout/automation_dialog_action.xml b/automation/src/main/res/layout/automation_dialog_action.xml
index e45b73ffe9..63acf76b0b 100644
--- a/automation/src/main/res/layout/automation_dialog_action.xml
+++ b/automation/src/main/res/layout/automation_dialog_action.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/automation/src/main/res/layout/automation_dialog_choose_action.xml b/automation/src/main/res/layout/automation_dialog_choose_action.xml
index f74536c3aa..29ee8f8b91 100644
--- a/automation/src/main/res/layout/automation_dialog_choose_action.xml
+++ b/automation/src/main/res/layout/automation_dialog_choose_action.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/automation/src/main/res/layout/automation_dialog_choose_operation.xml b/automation/src/main/res/layout/automation_dialog_choose_operation.xml
index 34e088df8c..9437c7f846 100644
--- a/automation/src/main/res/layout/automation_dialog_choose_operation.xml
+++ b/automation/src/main/res/layout/automation_dialog_choose_operation.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/automation/src/main/res/layout/automation_dialog_choose_trigger.xml b/automation/src/main/res/layout/automation_dialog_choose_trigger.xml
index 11013ea7a0..ef5d2b8f67 100644
--- a/automation/src/main/res/layout/automation_dialog_choose_trigger.xml
+++ b/automation/src/main/res/layout/automation_dialog_choose_trigger.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/automation/src/main/res/layout/automation_dialog_edit_trigger.xml b/automation/src/main/res/layout/automation_dialog_edit_trigger.xml
index a5365ca1d5..84b5372c71 100644
--- a/automation/src/main/res/layout/automation_dialog_edit_trigger.xml
+++ b/automation/src/main/res/layout/automation_dialog_edit_trigger.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/automation/src/main/res/layout/automation_dialog_event.xml b/automation/src/main/res/layout/automation_dialog_event.xml
index 6fde17856f..bdaacc0837 100644
--- a/automation/src/main/res/layout/automation_dialog_event.xml
+++ b/automation/src/main/res/layout/automation_dialog_event.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
@@ -114,7 +114,7 @@
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
- android:background="@color/ribbonDefault"
+ android:background="?attr/activity_title_backgroundColor"
android:padding="8dp"
android:text="@string/edit_short" />
@@ -177,7 +177,7 @@
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
- android:background="@color/ribbonDefault"
+ android:background="?attr/activity_title_backgroundColor"
android:padding="8dp"
android:text="@string/add_short" />
diff --git a/automation/src/main/res/layout/automation_event_item.xml b/automation/src/main/res/layout/automation_event_item.xml
index b91efdbb2c..e3ba50b3a1 100644
--- a/automation/src/main/res/layout/automation_event_item.xml
+++ b/automation/src/main/res/layout/automation_event_item.xml
@@ -9,7 +9,7 @@
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
- android:background="@color/ribbonDefault"
+ android:background="?attr/activity_title_backgroundColor"
android:clickable="true"
android:focusable="true">
diff --git a/combo/src/main/res/layout/combopump_fragment.xml b/combo/src/main/res/layout/combopump_fragment.xml
index 8b914c54b6..8225bb48e7 100644
--- a/combo/src/main/res/layout/combopump_fragment.xml
+++ b/combo/src/main/res/layout/combopump_fragment.xml
@@ -51,7 +51,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -97,7 +96,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -144,7 +142,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:text=""
android:textSize="14sp" />
@@ -191,7 +188,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -237,7 +233,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -283,7 +278,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -329,7 +323,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -375,7 +368,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -421,7 +413,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -467,7 +458,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -516,7 +506,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt b/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt
index ead45005be..7bf0c54f6b 100644
--- a/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt
+++ b/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt
@@ -32,6 +32,7 @@ class PrefImportListActivity : DaggerAppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
+ // temp while switch is not public
setTheme(R.style.AppTheme)
binding = MaintenanceImportListActivityBinding.inflate(layoutInflater)
val view = binding.root
diff --git a/core/src/main/java/info/nightscout/androidaps/utils/alertDialogs/AlertDialogHelper.kt b/core/src/main/java/info/nightscout/androidaps/utils/alertDialogs/AlertDialogHelper.kt
index 0553fa7d8c..3fdca2f89c 100644
--- a/core/src/main/java/info/nightscout/androidaps/utils/alertDialogs/AlertDialogHelper.kt
+++ b/core/src/main/java/info/nightscout/androidaps/utils/alertDialogs/AlertDialogHelper.kt
@@ -10,13 +10,14 @@ import androidx.annotation.LayoutRes
import androidx.annotation.StyleRes
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.view.ContextThemeWrapper
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
import info.nightscout.androidaps.core.R
object AlertDialogHelper {
@Suppress("FunctionName")
fun Builder(context: Context, @StyleRes themeResId: Int = R.style.AppTheme) =
- AlertDialog.Builder(ContextThemeWrapper(context, themeResId))
+ MaterialAlertDialogBuilder(ContextThemeWrapper(context, themeResId))
fun buildCustomTitle(context: Context, title: String,
@DrawableRes iconResource: Int = R.drawable.ic_check_while_48dp,
diff --git a/core/src/main/res/drawable-hdpi/background_total.xml b/core/src/main/res/drawable-hdpi/background_total.xml
new file mode 100644
index 0000000000..0a84006dee
--- /dev/null
+++ b/core/src/main/res/drawable-hdpi/background_total.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/core/src/main/res/drawable-hdpi/border_gray.xml b/core/src/main/res/drawable-hdpi/border_gray.xml
index 24aaac5f72..7635f80234 100644
--- a/core/src/main/res/drawable-hdpi/border_gray.xml
+++ b/core/src/main/res/drawable-hdpi/border_gray.xml
@@ -1,17 +1,11 @@
- -
+
-
+
+
- -
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/launch_screen.xml b/core/src/main/res/drawable/launch_screen.xml
similarity index 90%
rename from app/src/main/res/drawable/launch_screen.xml
rename to core/src/main/res/drawable/launch_screen.xml
index 543fd89929..75d463502a 100644
--- a/app/src/main/res/drawable/launch_screen.xml
+++ b/core/src/main/res/drawable/launch_screen.xml
@@ -4,7 +4,7 @@
-
+
-
diff --git a/app/src/main/res/drawable/splash_icon.png b/core/src/main/res/drawable/splash_icon.png
similarity index 100%
rename from app/src/main/res/drawable/splash_icon.png
rename to core/src/main/res/drawable/splash_icon.png
diff --git a/core/src/main/res/layout/activity_tdd_stats.xml b/core/src/main/res/layout/activity_tdd_stats.xml
index 772859ccd2..5f1d7dad33 100644
--- a/core/src/main/res/layout/activity_tdd_stats.xml
+++ b/core/src/main/res/layout/activity_tdd_stats.xml
@@ -23,8 +23,7 @@
android:layout_weight="1"
android:background="@drawable/pillborder"
android:gravity="center_horizontal"
- android:text="@string/tdd"
- android:textColor="@color/mdtp_white" />
+ android:text="@string/tdd" />
+ android:text="@string/cumulative_tdd" />
+ android:text="@string/expweight" />
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:textAppearance="?android:attr/textAppearanceMedium" />
@@ -174,7 +169,7 @@
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="@string/warning_Message"
- android:textColor="#ff0000"
+ android:textColor="?attr/alarmColor"
android:textSize="15sp"
android:textStyle="bold" />
diff --git a/core/src/main/res/layout/dialog_bolusprogress.xml b/core/src/main/res/layout/dialog_bolusprogress.xml
index 9fc4930564..6de8f83d97 100644
--- a/core/src/main/res/layout/dialog_bolusprogress.xml
+++ b/core/src/main/res/layout/dialog_bolusprogress.xml
@@ -10,7 +10,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/core/src/main/res/layout/dialog_error.xml b/core/src/main/res/layout/dialog_error.xml
index 39401499d5..e6112fa634 100644
--- a/core/src/main/res/layout/dialog_error.xml
+++ b/core/src/main/res/layout/dialog_error.xml
@@ -10,7 +10,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/core/src/main/res/layout/dialog_profileviewer.xml b/core/src/main/res/layout/dialog_profileviewer.xml
index f33217816c..6ab2d5e9fa 100644
--- a/core/src/main/res/layout/dialog_profileviewer.xml
+++ b/core/src/main/res/layout/dialog_profileviewer.xml
@@ -17,7 +17,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
@@ -58,7 +58,7 @@
android:gravity="center_horizontal"
android:text="@string/invalidprofile"
android:textAppearance="?android:attr/textAppearanceLarge"
- android:textColor="@android:color/holo_red_light"
+ android:textColor="?attr/alarmColor"
android:textStyle="bold"
android:visibility="gone" />
@@ -69,7 +69,7 @@
android:gravity="center_horizontal"
android:text="@string/noprofileset"
android:textAppearance="?android:attr/textAppearanceLarge"
- android:textColor="@android:color/holo_red_light"
+ android:textColor="?attr/alarmColor"
android:textStyle="bold"
android:visibility="gone" />
@@ -106,7 +106,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -152,7 +151,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -198,7 +196,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -244,7 +241,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -296,7 +292,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -348,7 +343,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -384,7 +378,6 @@
android:layout_marginStart="17dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -436,7 +429,6 @@
android:layout_marginStart="5dp"
android:layout_weight="1"
android:gravity="start"
- android:textColor="@android:color/white"
android:textSize="14sp" />
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 fc02c57ab3..1f41782aba 100644
--- a/core/src/main/res/layout/maintenance_import_list_item.xml
+++ b/core/src/main/res/layout/maintenance_import_list_item.xml
@@ -7,7 +7,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- card_view:cardBackgroundColor="?android:colorBackground">
+ card_view:cardBackgroundColor="?attr/cardItemBackgroundColor">
+ app:tint="?attr/importListFileNameColor" />
@@ -68,7 +68,7 @@
android:scrollHorizontally="false"
android:text="File dir here"
android:textAppearance="?android:attr/textAppearanceSmall"
- android:textColor="@color/importListFileName"
+ android:textColor="?attr/importListFileNameColor"
android:textSize="11sp"
tools:ignore="HardcodedText" />
@@ -91,7 +91,7 @@
android:layout_marginEnd="8dp"
android:layout_marginBottom="1dp"
card_view:srcCompat="@drawable/ic_meta_name"
- app:tint="@color/importListAdditionalInfo" />
+ app:tint="?attr/importListAdditionalInfoColor" />
@@ -123,7 +123,7 @@
android:layout_marginEnd="8dp"
android:layout_marginBottom="1dp"
card_view:srcCompat="@drawable/ic_meta_date"
- app:tint="@color/importListAdditionalInfo" />
+ app:tint="?attr/importListAdditionalInfoColor" />
diff --git a/core/src/main/res/layout/number_picker_layout.xml b/core/src/main/res/layout/number_picker_layout.xml
index f0ecd4de75..f42f19ff35 100644
--- a/core/src/main/res/layout/number_picker_layout.xml
+++ b/core/src/main/res/layout/number_picker_layout.xml
@@ -5,14 +5,13 @@
android:layout_height="40dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal"
- android:background="@drawable/background_darkgray">
+ android:background="@drawable/background_total">
-
\ No newline at end of file
+
diff --git a/core/src/main/res/layout/spinner_centered.xml b/core/src/main/res/layout/spinner_centered.xml
index 8e633c7356..2d093bf51e 100644
--- a/core/src/main/res/layout/spinner_centered.xml
+++ b/core/src/main/res/layout/spinner_centered.xml
@@ -5,5 +5,4 @@
android:gravity="center"
android:paddingTop="5dp"
android:paddingBottom="5dp"
- android:textAppearance="@style/TextAppearance.AppCompat.Medium"
- android:textColor="#FFFFFF" />
\ No newline at end of file
+ android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
\ No newline at end of file
diff --git a/core/src/main/res/layout/toast.xml b/core/src/main/res/layout/toast.xml
index 43c9eea8e5..32175b4065 100644
--- a/core/src/main/res/layout/toast.xml
+++ b/core/src/main/res/layout/toast.xml
@@ -27,7 +27,7 @@
android:layout_marginRight="18dp"
android:layout_marginBottom="4dp"
android:text="Toast goes here..."
- android:textColor="@color/toastBase"
+ android:textColor="?attr/toastBaseTextColor"
android:textSize="18sp"
tools:ignore="HardcodedText,RtlHardcoded" />
\ No newline at end of file
diff --git a/core/src/main/res/values-night/colors.xml b/core/src/main/res/values-night/colors.xml
new file mode 100644
index 0000000000..643368416e
--- /dev/null
+++ b/core/src/main/res/values-night/colors.xml
@@ -0,0 +1,216 @@
+
+
+
+
+ #212121
+ #000000
+ #40bbaa
+ #ffffff
+ #808080
+ #d8d8d8
+ #212121
+ #66000000
+ #BBBBBB
+ #FF000000
+ #FFFFFFFF
+
+ #222222
+ #bbb9bb
+ #222222
+ #03dac6
+ #e3e3e3
+ #848484
+ #ffffff
+ #000000
+ #1c171c
+ #FFFFFF
+
+ #424242
+ #B3FFFFFF
+
+
+ #d0d0d0
+ @color/white
+
+
+ #555555
+ #ffffff
+ @color/colorAccent
+ #33969696
+
+ #E93057
+ #67DFE8
+ #E93057
+ #67E86A
+
+
+ #505050
+
+
+ #303030
+ #121212
+ #FFFFFF
+ #FFFFFF
+ #FFFB8C00
+ #FF000000
+ #FFFB8C00
+ #FFFF5555
+ #FF000000
+ #C803A9F4
+ #FFFF5555
+ #BBBBBB
+
+
+ #C803A9F4
+ #505050
+ #00ffff
+
+
+
+ #939393
+ #00C03E
+ #FFFF13
+ #4983D7
+ #FF1313
+
+
+ #00FF00
+ #FF0000
+ #FFFF00
+ #1e88e5
+ #67DFE8
+ #1ea3e5
+ #FFFB8C00
+ #FFFB8C00
+ #c9bd60
+ #00d2d2
+ #E83258
+
+ #5a595b
+ #D000FF00
+ #1ea3e5
+ #1e88e5
+
+
+ #FF8C00
+ #ff0400
+ #ff5e55
+ #ff827c
+
+
+ #009705
+
+
+ #666666
+ #ffffff
+ #77dd77
+ #ff0400
+ #FF8C00
+ #03A9F4
+
+
+ #1A000000
+ #33000000
+ #4D000000
+ #66000000
+ #80000000
+ #99000000
+ #A6000000
+ #B3000000
+ #CC000000
+ #E6000000
+
+ #10FFFFFF
+ #1AFFFFFF
+ #33FFFFFF
+ #4DFFFFFF
+ #66FFFFFF
+ #80FFFFFF
+ #99FFFFFF
+ #A6FFFFFF
+ #B3FFFFFF
+ #CCFFFFFF
+ #E6FFFFFF
+
+ #00000000
+
+
+ #77dd77
+ #FF8C00
+ #FF5555
+
+
+ #BBBBBB
+ #FFFFFF
+
+ #f4d700
+ #ff0400
+ #FFFFFF
+ #303030
+ #77dd77
+
+ #ff00ff
+ #00d2d2
+ #1ea3e5
+ #FFFFFF
+ #d3f166
+ #00EEEE
+ #FFFFFF00
+ #FFFF00FF
+ #FFFF00
+ #FF666666
+ #FF0000
+ #7484E2
+ #2800FF00
+ #C83F51B5
+ #757575
+ #ff1a1a
+ #77dd77
+ #66FC0000
+ @color/colorPrimaryDark
+
+ #77dd77
+ #67DFE8
+
+ #ffffbb33
+ #ffff4444
+
+ #779ECB
+
+ #f4d700
+ #67dfe8
+ #67dfe8
+ #ffae01
+ #e93057
+ #67e86a
+ #ffae01
+ #FF478EFF
+ #FFDD7792
+ #ca77dd
+
+ #FF5722
+
+ #de7550
+ #25912e
+
+ #c8666666
+ #7200FF00
+ #72FF0000
+ #72000000
+
+ #000000
+
+
+ #323232
+ #424242
+ #3C3C3C
+ #666666
+ #8c8c8c
+ #72000000
+ #c8666666
+ #B2B2B2
+ #4dB1B1B1
+ #33969696
+ #EBEBEA
+
+
diff --git a/core/src/main/res/values-night/styles.xml b/core/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000000..fb9611ebed
--- /dev/null
+++ b/core/src/main/res/values-night/styles.xml
@@ -0,0 +1,238 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 48dp
+ 14sp
+ 64dp
+ 8dp
+
+
+
+
+
+
+
+
+
+ 5dp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml
index 918e9b7114..a950931863 100644
--- a/core/src/main/res/values/attrs.xml
+++ b/core/src/main/res/values/attrs.xml
@@ -1,18 +1,88 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
\ No newline at end of file
diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml
index 69de6e1abb..ece87b9834 100644
--- a/core/src/main/res/values/colors.xml
+++ b/core/src/main/res/values/colors.xml
@@ -2,13 +2,13 @@
- #212121
- #000000
+ #787878
+ #676767
#40bbaa
#ffffff
#808080
#d8d8d8
- #212121
+ #999999
#66000000
#BBBBBB
#FF000000
@@ -25,12 +25,12 @@
#1c171c
#FFFFFF
- #424242
+ #999999
#B3FFFFFF
- #d0d0d0
- @color/white
+ #d0d0d0
+ @color/white
#555555
@@ -133,6 +133,8 @@
#CCFFFFFF
#E6FFFFFF
+ #00000000
+
#77dd77
#FF8C00
@@ -148,4 +150,68 @@
#303030
#77dd77
+ #ff00ff
+ #00d2d2
+ #1ea3e5
+ #FFFFFF
+ #d3f166
+ #00EEEE
+ #FFFFFF00
+ #FFFF00FF
+ #FFFF00
+ #FF666666
+ #FF0000
+ #7484E2
+ #2800FF00
+ #C83F51B5
+ #757575
+ #ff1a1a
+ #77dd77
+ #66FC0000
+ @color/black
+
+ #77dd77
+ #67DFE8
+
+ #ffffbb33
+ #ffff4444
+
+ #779ECB
+
+ #f4d700
+ #67dfe8
+ #67dfe8
+ #ffae01
+ #e93057
+ #67e86a
+ #ffae01
+ #FF478EFF
+ #FFDD7792
+ #ca77dd
+
+ #FF5722
+
+ #de7550
+ #25912e
+
+ #c8666666
+ #7200FF00
+ #72FF0000
+ #72000000
+
+ #FFFFFF
+
+
+ #323232
+ #424242
+ #3C3C3C
+ #666666
+ #8c8c8c
+ #72000000
+ #c8666666
+ #B2B2B2
+ #4dB1B1B1
+ #33969696
+ #EBEBEA
+
diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml
index aa90c26865..cee8777b62 100644
--- a/core/src/main/res/values/strings.xml
+++ b/core/src/main/res/values/strings.xml
@@ -64,6 +64,7 @@
resistantadult
pregnant
app_expiration
+ use_dark_mode
Refresh
diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml
index 0fb8505200..207df470f3 100644
--- a/core/src/main/res/values/styles.xml
+++ b/core/src/main/res/values/styles.xml
@@ -1,38 +1,117 @@
-
+
+
-
@@ -114,6 +194,7 @@
+
+
+
+
+
+
+
diff --git a/dana/src/main/res/layout/danar_fragment.xml b/dana/src/main/res/layout/danar_fragment.xml
index 44b4057fab..1c6c7359f3 100644
--- a/dana/src/main/res/layout/danar_fragment.xml
+++ b/dana/src/main/res/layout/danar_fragment.xml
@@ -51,7 +51,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -103,7 +102,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:text="{fa-bluetooth-b}"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" />
@@ -153,7 +151,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -203,7 +200,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -252,7 +248,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -301,7 +296,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -350,7 +344,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -399,7 +392,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -448,7 +440,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -497,7 +488,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -546,7 +536,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -595,7 +584,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -640,7 +628,7 @@
android:paddingBottom="6dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
- android:background="@color/pumpStatusBackground"
+ android:background="?attr/pumpStatusBackground"
android:gravity="center_vertical|center_horizontal"
android:textAppearance="?android:attr/textAppearanceSmall" />
@@ -662,7 +650,7 @@
android:paddingBottom="6dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
- android:background="@color/pumpStatusBackground"
+ android:background="?attr/pumpStatusBackground"
android:gravity="center_vertical|center_horizontal"
android:textAppearance="?android:attr/textAppearanceSmall" />
diff --git a/dana/src/main/res/layout/danar_history_activity.xml b/dana/src/main/res/layout/danar_history_activity.xml
index 2db55d0f46..1c5be7f3ca 100644
--- a/dana/src/main/res/layout/danar_history_activity.xml
+++ b/dana/src/main/res/layout/danar_history_activity.xml
@@ -13,7 +13,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp"
app:layout_constraintBottom_toTopOf="@+id/spinner"
diff --git a/dana/src/main/res/layout/danar_user_options_activity.xml b/dana/src/main/res/layout/danar_user_options_activity.xml
index 6b03e739ac..73ef407562 100644
--- a/dana/src/main/res/layout/danar_user_options_activity.xml
+++ b/dana/src/main/res/layout/danar_user_options_activity.xml
@@ -19,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/danars/src/main/res/layout/danars_blescanner_activity.xml b/danars/src/main/res/layout/danars_blescanner_activity.xml
index b3bd15598f..2a61d0ba7f 100644
--- a/danars/src/main/res/layout/danars_blescanner_activity.xml
+++ b/danars/src/main/res/layout/danars_blescanner_activity.xml
@@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/danars/src/main/res/layout/danars_blescanner_item.xml b/danars/src/main/res/layout/danars_blescanner_item.xml
index 9a39302163..6ff5828f67 100644
--- a/danars/src/main/res/layout/danars_blescanner_item.xml
+++ b/danars/src/main/res/layout/danars_blescanner_item.xml
@@ -11,7 +11,6 @@
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_toStartOf="@+id/ble_address"
- android:textColor="#ffffff"
android:textSize="20sp" />
diff --git a/danars/src/main/res/layout/danars_pairing_progress_dialog.xml b/danars/src/main/res/layout/danars_pairing_progress_dialog.xml
index d8816e1fda..33beac9647 100644
--- a/danars/src/main/res/layout/danars_pairing_progress_dialog.xml
+++ b/danars/src/main/res/layout/danars_pairing_progress_dialog.xml
@@ -10,7 +10,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/dialog_title_background"
+ android:background="?attr/dialogTitleBackground"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/diaconn/src/main/res/layout/diaconn_g8_blescanner_activity.xml b/diaconn/src/main/res/layout/diaconn_g8_blescanner_activity.xml
index 46f9fc2056..47de6d9e4e 100644
--- a/diaconn/src/main/res/layout/diaconn_g8_blescanner_activity.xml
+++ b/diaconn/src/main/res/layout/diaconn_g8_blescanner_activity.xml
@@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/diaconn/src/main/res/layout/diaconn_g8_fragment.xml b/diaconn/src/main/res/layout/diaconn_g8_fragment.xml
index 233b51bc88..ccdfb8a3b4 100644
--- a/diaconn/src/main/res/layout/diaconn_g8_fragment.xml
+++ b/diaconn/src/main/res/layout/diaconn_g8_fragment.xml
@@ -71,7 +71,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -120,7 +119,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:text="{fa-bluetooth-b}"
- android:textColor="@android:color/white"
android:textSize="20dp"
tools:ignore="HardcodedText" />
@@ -177,7 +175,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="20sp" />
@@ -225,7 +222,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -272,7 +268,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -319,7 +314,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -366,7 +360,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -413,7 +406,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -460,7 +452,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -507,7 +498,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -554,7 +544,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -601,7 +590,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -648,7 +636,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/diaconn/src/main/res/layout/diaconn_g8_history_activity.xml b/diaconn/src/main/res/layout/diaconn_g8_history_activity.xml
index 6634deae47..a5fc8e4b5a 100644
--- a/diaconn/src/main/res/layout/diaconn_g8_history_activity.xml
+++ b/diaconn/src/main/res/layout/diaconn_g8_history_activity.xml
@@ -13,7 +13,7 @@
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/diaconn/src/main/res/layout/diaconn_g8_history_item.xml b/diaconn/src/main/res/layout/diaconn_g8_history_item.xml
index 66ee8536db..8203d00bcc 100644
--- a/diaconn/src/main/res/layout/diaconn_g8_history_item.xml
+++ b/diaconn/src/main/res/layout/diaconn_g8_history_item.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- card_view:cardBackgroundColor="@color/cardColorBackground"
+ card_view:cardBackgroundColor="?attr/cardItemBackgroundColor"
card_view:cardCornerRadius="6dp"
card_view:cardUseCompatPadding="true"
card_view:contentPadding="6dp">
diff --git a/diaconn/src/main/res/layout/diaconn_g8_user_options_activity.xml b/diaconn/src/main/res/layout/diaconn_g8_user_options_activity.xml
index f925ef9aed..502c2eb97c 100644
--- a/diaconn/src/main/res/layout/diaconn_g8_user_options_activity.xml
+++ b/diaconn/src/main/res/layout/diaconn_g8_user_options_activity.xml
@@ -19,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@color/activity_title_background"
+ android:background="?attr/activity_title_backgroundColor"
android:orientation="horizontal"
android:padding="5dp">
diff --git a/insight/src/main/res/layout/activity_insight_pairing_information.xml b/insight/src/main/res/layout/activity_insight_pairing_information.xml
index 077f78cf9f..9910d78027 100644
--- a/insight/src/main/res/layout/activity_insight_pairing_information.xml
+++ b/insight/src/main/res/layout/activity_insight_pairing_information.xml
@@ -12,7 +12,6 @@
@@ -27,7 +26,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/release_software_version" />
@@ -42,7 +40,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/ui_processor_software_version" />
@@ -57,7 +54,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/pc_processor_software_version" />
@@ -72,7 +68,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/md_tel_processor_software_version" />
@@ -102,7 +97,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/bt_info_page_version" />
@@ -117,7 +111,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/bluetooth_address" />
@@ -132,7 +125,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/system_id_appendix" />
@@ -147,7 +139,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:textColor="#FFFFFF"
android:textSize="16sp"
android:text="@string/manufacturing_date" />
diff --git a/medtronic/src/main/res/layout/medtronic_fragment.xml b/medtronic/src/main/res/layout/medtronic_fragment.xml
index f866b9a0a5..125ee1f63e 100644
--- a/medtronic/src/main/res/layout/medtronic_fragment.xml
+++ b/medtronic/src/main/res/layout/medtronic_fragment.xml
@@ -32,7 +32,7 @@
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
- android:background="@color/pumpStatusBackground"
+ android:background="?attr/pumpStatusBackground"
android:gravity="center_vertical|center_horizontal"
android:text="@string/initializing"
android:textAppearance="?android:attr/textAppearanceSmall" />
@@ -83,7 +83,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:text="{fa-bluetooth-b}"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" />
@@ -139,7 +138,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:text=""
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -191,7 +189,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:text="{fa-bluetooth-b}"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" />
@@ -249,7 +246,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:text=""
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -299,7 +295,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -348,7 +343,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -398,7 +392,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -447,7 +440,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -497,7 +489,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
@@ -547,7 +538,6 @@
android:layout_weight="1"
android:gravity="start"
android:paddingStart="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="RtlSymmetry" />
diff --git a/omnipod-common/src/main/res/layout/omnipod_common_overview_pod_info.xml b/omnipod-common/src/main/res/layout/omnipod_common_overview_pod_info.xml
index 1e487499d2..f1a56425cd 100644
--- a/omnipod-common/src/main/res/layout/omnipod_common_overview_pod_info.xml
+++ b/omnipod-common/src/main/res/layout/omnipod_common_overview_pod_info.xml
@@ -41,7 +41,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -82,7 +81,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -122,7 +120,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -162,7 +159,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -202,7 +198,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -243,7 +238,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -285,7 +279,6 @@
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text=""
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -341,7 +334,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -390,7 +382,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -439,7 +430,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -488,7 +478,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -537,7 +526,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -586,7 +574,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -635,7 +622,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
@@ -684,7 +670,6 @@
android:gravity="start"
android:paddingStart="5dp"
android:paddingEnd="5dp"
- android:textColor="@android:color/white"
android:textSize="14sp" />
diff --git a/omnipod-eros/src/main/res/layout/omnipod_eros_overview_riley_link_status.xml b/omnipod-eros/src/main/res/layout/omnipod_eros_overview_riley_link_status.xml
index c2bb2cf695..3b1413977b 100644
--- a/omnipod-eros/src/main/res/layout/omnipod_eros_overview_riley_link_status.xml
+++ b/omnipod-eros/src/main/res/layout/omnipod_eros_overview_riley_link_status.xml
@@ -37,7 +37,6 @@
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="{fa-bluetooth-b}"
- android:textColor="@android:color/white"
android:textSize="14sp"
tools:ignore="HardcodedText" />
diff --git a/rileylink/src/main/res/layout/rileylink_status.xml b/rileylink/src/main/res/layout/rileylink_status.xml
index 963b007d0b..d73f137bcb 100644
--- a/rileylink/src/main/res/layout/rileylink_status.xml
+++ b/rileylink/src/main/res/layout/rileylink_status.xml
@@ -15,9 +15,9 @@