From 8249118a149f0659d8065473983a1d2cd315d144 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Tue, 26 Apr 2022 19:34:13 +0200 Subject: [PATCH 1/2] improve localprofile on entry --- app/src/main/res/layout/localprofile_fragment.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/res/layout/localprofile_fragment.xml b/app/src/main/res/layout/localprofile_fragment.xml index f1bd26f410..ff453c53e0 100644 --- a/app/src/main/res/layout/localprofile_fragment.xml +++ b/app/src/main/res/layout/localprofile_fragment.xml @@ -302,6 +302,7 @@ android:paddingStart="10dp" android:paddingEnd="10dp" android:text="@string/activate_profile" + android:visibility="gone" app:icon="@drawable/ic_local_activate" app:iconTint="@color/ic_local_activate" /> @@ -323,6 +324,7 @@ android:paddingStart="1dp" android:paddingEnd="1dp" android:text="@string/reset" + android:visibility="gone" app:icon="@drawable/ic_local_reset" app:iconTint="@color/ic_local_reset" /> @@ -338,6 +340,7 @@ android:paddingStart="1dp" android:paddingEnd="1dp" android:text="@string/save" + android:visibility="gone" app:icon="@drawable/ic_local_save" app:iconTint="@color/ic_local_save" /> From ff34e9bdd2b071d456b412e7f856e10ee0cfa385 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Tue, 26 Apr 2022 19:34:19 +0200 Subject: [PATCH 2/2] improve dana bottom buttons --- core/src/main/res/drawable/ic_danarstats.xml | 8 ++-- dana/src/main/res/layout/danar_fragment.xml | 39 ++++++++++++-------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/core/src/main/res/drawable/ic_danarstats.xml b/core/src/main/res/drawable/ic_danarstats.xml index 81b3952eb4..a95eef3884 100644 --- a/core/src/main/res/drawable/ic_danarstats.xml +++ b/core/src/main/res/drawable/ic_danarstats.xml @@ -7,24 +7,24 @@ android:pathData="M5.719,19.125L5.719,11.828" android:strokeWidth="2.2677" android:fillColor="#00000000" - android:strokeColor="#FEAF05" + android:strokeColor="?attr/statsColor" android:strokeLineCap="round"/> diff --git a/dana/src/main/res/layout/danar_fragment.xml b/dana/src/main/res/layout/danar_fragment.xml index e26919aebd..8cc0d95305 100644 --- a/dana/src/main/res/layout/danar_fragment.xml +++ b/dana/src/main/res/layout/danar_fragment.xml @@ -2,6 +2,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" tools:context="info.nightscout.androidaps.dana.DanaFragment" android:orientation="vertical"> @@ -658,50 +659,58 @@ android:layout_height="wrap_content" android:orientation="horizontal"> - + android:text="@string/viewprofile" + android:maxLines="2" + android:ellipsize="end" + app:iconPadding="-4dp"/> - - + android:text="@string/stats" + android:maxLines="2" + android:ellipsize="end" + app:iconPadding="-4dp"/> - + android:text="@string/danar_useroptions" + android:maxLines="2" + android:ellipsize="end" + app:iconPadding="-4dp"/>