From 48e2ec770c10f77890a2f9393fd079d92adbe02c Mon Sep 17 00:00:00 2001 From: Gino Miceli Date: Thu, 9 Nov 2023 17:32:06 -0500 Subject: [PATCH 1/7] Tweak menu text and icons --- .../main/res/drawable-anydpi/ic_history.xml | 29 +++++++++++++++ .../main/res/drawable-anydpi/ic_satellite.xml | 29 +++++++++++++++ .../main/res/drawable/ic_content_paste.xml | 28 +++++++++++++++ ground/src/main/res/menu/nav_drawer_menu.xml | 36 +++++++++---------- ground/src/main/res/values/strings.xml | 4 +-- 5 files changed, 104 insertions(+), 22 deletions(-) create mode 100644 ground/src/main/res/drawable-anydpi/ic_history.xml create mode 100644 ground/src/main/res/drawable-anydpi/ic_satellite.xml create mode 100644 ground/src/main/res/drawable/ic_content_paste.xml diff --git a/ground/src/main/res/drawable-anydpi/ic_history.xml b/ground/src/main/res/drawable-anydpi/ic_history.xml new file mode 100644 index 0000000000..5a67459353 --- /dev/null +++ b/ground/src/main/res/drawable-anydpi/ic_history.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/ground/src/main/res/drawable-anydpi/ic_satellite.xml b/ground/src/main/res/drawable-anydpi/ic_satellite.xml new file mode 100644 index 0000000000..fa059f6463 --- /dev/null +++ b/ground/src/main/res/drawable-anydpi/ic_satellite.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/ground/src/main/res/drawable/ic_content_paste.xml b/ground/src/main/res/drawable/ic_content_paste.xml new file mode 100644 index 0000000000..4dc66be686 --- /dev/null +++ b/ground/src/main/res/drawable/ic_content_paste.xml @@ -0,0 +1,28 @@ + + + + + + + diff --git a/ground/src/main/res/menu/nav_drawer_menu.xml b/ground/src/main/res/menu/nav_drawer_menu.xml index a309ddc1e7..f005e81428 100644 --- a/ground/src/main/res/menu/nav_drawer_menu.xml +++ b/ground/src/main/res/menu/nav_drawer_menu.xml @@ -21,24 +21,20 @@ android:id="@+id/nav_change_survey" android:icon="@drawable/ic_add" android:title="@string/change_survey" /> - - - - - - + + + + diff --git a/ground/src/main/res/values/strings.xml b/ground/src/main/res/values/strings.xml index 95af0c18c9..3e50c00ebd 100644 --- a/ground/src/main/res/values/strings.xml +++ b/ground/src/main/res/values/strings.xml @@ -74,7 +74,7 @@ Saving… Google Play Services installation failed Sign out - Change survey + Surveys Collect data @@ -101,7 +101,7 @@ Date Time - Sync status + History and sync status Job: %s Add point From 665cfc56f41fe049d12a03897417e416fad3d67b Mon Sep 17 00:00:00 2001 From: Gino Miceli Date: Fri, 10 Nov 2023 17:28:31 -0500 Subject: [PATCH 2/7] Nav drawer styles --- ground/src/main/res/menu/nav_drawer_menu.xml | 2 +- ground/src/main/res/values/styles.xml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ground/src/main/res/menu/nav_drawer_menu.xml b/ground/src/main/res/menu/nav_drawer_menu.xml index f005e81428..02817cf0f5 100644 --- a/ground/src/main/res/menu/nav_drawer_menu.xml +++ b/ground/src/main/res/menu/nav_drawer_menu.xml @@ -19,7 +19,7 @@ 0.01 + + From 0142a4c6e3dfaba7d149d48feed1b52cc42ca7a6 Mon Sep 17 00:00:00 2001 From: Gino Miceli Date: Fri, 10 Nov 2023 17:37:35 -0500 Subject: [PATCH 3/7] Fix accidental paste --- ground/src/main/res/values/styles.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/src/main/res/values/styles.xml b/ground/src/main/res/values/styles.xml index e618af69ab..c02ba91741 100644 --- a/ground/src/main/res/values/styles.xml +++ b/ground/src/main/res/values/styles.xml @@ -78,7 +78,7 @@ From 7b220108a40a70016b0858f8fa33ec2e54494b89 Mon Sep 17 00:00:00 2001 From: Gino Miceli Date: Mon, 13 Nov 2023 08:50:23 -0500 Subject: [PATCH 4/7] Remove unused --- .../res/drawable-anydpi/ic_cloud_offline.xml | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 ground/src/main/res/drawable-anydpi/ic_cloud_offline.xml diff --git a/ground/src/main/res/drawable-anydpi/ic_cloud_offline.xml b/ground/src/main/res/drawable-anydpi/ic_cloud_offline.xml deleted file mode 100644 index c53075fc93..0000000000 --- a/ground/src/main/res/drawable-anydpi/ic_cloud_offline.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - From 8d7ba3f297c20f117e1239437a0801f7e0924716 Mon Sep 17 00:00:00 2001 From: Gino Miceli Date: Mon, 13 Nov 2023 09:15:56 -0500 Subject: [PATCH 5/7] Tweak styling --- ground/src/main/res/layout/home_screen_frag.xml | 1 + ground/src/main/res/values/styles.xml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ground/src/main/res/layout/home_screen_frag.xml b/ground/src/main/res/layout/home_screen_frag.xml index a9e3ebb734..e5b1f4f441 100644 --- a/ground/src/main/res/layout/home_screen_frag.xml +++ b/ground/src/main/res/layout/home_screen_frag.xml @@ -55,6 +55,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" + app:itemTextAppearance="@style/TextAppearance.App.TitleSmall.OnSurfaceContainer" app:headerLayout="@layout/nav_drawer_header" app:itemBackground="@android:color/transparent" app:itemIconTint="@color/nav_drawer_item" diff --git a/ground/src/main/res/values/styles.xml b/ground/src/main/res/values/styles.xml index c02ba91741..07bedde149 100644 --- a/ground/src/main/res/values/styles.xml +++ b/ground/src/main/res/values/styles.xml @@ -149,6 +149,14 @@ ?attr/colorPrimary + + + + - -