From 02b51a7e93cde0cc5ad3683a73d411d63257e6c2 Mon Sep 17 00:00:00 2001 From: Deep Vora <70479785+deeppp15@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:21:16 -0500 Subject: [PATCH] mylife: smoother mysubmissions dark mode (fixes #4989) (#5022) Co-authored-by: Gideon Okuro Co-authored-by: dogi --- app/build.gradle | 4 +- app/src/main/res/color/toggle_text_color.xml | 5 + .../drawable/bg_submission_toggle_button.xml | 14 +++ .../main/res/drawable/submission_toggle.xml | 9 ++ .../res/layout/fragment_my_submission.xml | 103 ++++++++++-------- 5 files changed, 85 insertions(+), 50 deletions(-) create mode 100644 app/src/main/res/color/toggle_text_color.xml create mode 100644 app/src/main/res/drawable/bg_submission_toggle_button.xml create mode 100644 app/src/main/res/drawable/submission_toggle.xml diff --git a/app/build.gradle b/app/build.gradle index b648a98a09..ac67065f9a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 26 targetSdkVersion 34 - versionCode 2204 - versionName "0.22.4" + versionCode 2205 + versionName "0.22.5" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/res/color/toggle_text_color.xml b/app/src/main/res/color/toggle_text_color.xml new file mode 100644 index 0000000000..3f993e5998 --- /dev/null +++ b/app/src/main/res/color/toggle_text_color.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable/bg_submission_toggle_button.xml b/app/src/main/res/drawable/bg_submission_toggle_button.xml new file mode 100644 index 0000000000..fbb8fd0f73 --- /dev/null +++ b/app/src/main/res/drawable/bg_submission_toggle_button.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/submission_toggle.xml b/app/src/main/res/drawable/submission_toggle.xml new file mode 100644 index 0000000000..8ae1811f43 --- /dev/null +++ b/app/src/main/res/drawable/submission_toggle.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/app/src/main/res/layout/fragment_my_submission.xml b/app/src/main/res/layout/fragment_my_submission.xml index 4cc2afc56a..2c8a1e684f 100644 --- a/app/src/main/res/layout/fragment_my_submission.xml +++ b/app/src/main/res/layout/fragment_my_submission.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" android:background="@color/secondary_bg" tools:context=".ui.submission.MySubmissionFragment"> @@ -14,62 +15,68 @@ android:id="@+id/llSearch" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="right" - android:gravity="right"> + android:gravity="center_horizontal" + android:orientation="vertical" + android:padding="10dp"> - - - - - + android:orientation="horizontal" + android:gravity="center" + android:background="@drawable/submission_toggle" + android:padding="10dp"> - + + + - - - + android:layout_marginTop="16dp" + android:textColorHint="@color/hint_color"> - + + + +