From 7bf237382c14ccdfca63c1ee00cdbf032a01ffec Mon Sep 17 00:00:00 2001 From: darken Date: Mon, 2 Sep 2024 13:23:26 +0200 Subject: [PATCH] Update material design and bump target API to 34 --- app/src/gplay/res/layout/upgrade_fragment.xml | 3 +- .../main/res/drawable/ic_chevron_right_24.xml | 10 + .../res/layout/dashboard_device_apps_item.xml | 13 +- .../main/res/layout/dashboard_device_item.xml | 17 +- .../main/res/layout/dashboard_fragment.xml | 1 + .../res/layout/dashboard_upgrade_item.xml | 5 +- app/src/main/res/values-es/strings.xml | 3 - app/src/main/res/values-night/colors.xml | 150 ++++++++++++- .../main/res/values-night/theme-overlays.xml | 100 +++++++++ app/src/main/res/values-night/themes.xml | 72 +++--- app/src/main/res/values/colors.xml | 207 ++++++++++++------ app/src/main/res/values/strings.xml | 2 - app/src/main/res/values/theme-overlays.xml | 100 +++++++++ app/src/main/res/values/themes.xml | 74 ++++--- buildSrc/src/main/java/Dependencies.kt | 16 +- buildSrc/src/main/java/ProjectConfig.kt | 4 +- 16 files changed, 623 insertions(+), 154 deletions(-) create mode 100644 app/src/main/res/drawable/ic_chevron_right_24.xml create mode 100644 app/src/main/res/values-night/theme-overlays.xml create mode 100644 app/src/main/res/values/theme-overlays.xml diff --git a/app/src/gplay/res/layout/upgrade_fragment.xml b/app/src/gplay/res/layout/upgrade_fragment.xml index ccb7065e..06a7d8d0 100644 --- a/app/src/gplay/res/layout/upgrade_fragment.xml +++ b/app/src/gplay/res/layout/upgrade_fragment.xml @@ -45,7 +45,8 @@ style="@style/Widget.Material3.CardView.Elevated" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp"> + android:layout_marginTop="8dp" + android:backgroundTint="?colorTertiaryContainer"> + + \ No newline at end of file diff --git a/app/src/main/res/layout/dashboard_device_apps_item.xml b/app/src/main/res/layout/dashboard_device_apps_item.xml index e8caba37..d26d1d17 100644 --- a/app/src/main/res/layout/dashboard_device_apps_item.xml +++ b/app/src/main/res/layout/dashboard_device_apps_item.xml @@ -5,12 +5,23 @@ style="@style/DashboardDeviceInfoRow" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?selectableItemBackground"> + android:background="?selectableItemBackground" + android:paddingStart="0dp"> + + - - \ No newline at end of file diff --git a/app/src/main/res/layout/dashboard_fragment.xml b/app/src/main/res/layout/dashboard_fragment.xml index 995cd94a..79c820b8 100644 --- a/app/src/main/res/layout/dashboard_fragment.xml +++ b/app/src/main/res/layout/dashboard_fragment.xml @@ -47,6 +47,7 @@ android:layout_gravity="bottom|end" android:layout_margin="24dp" android:contentDescription="@string/general_refresh_action" + app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior" app:srcCompat="@drawable/ic_baseline_refresh_24" /> \ No newline at end of file diff --git a/app/src/main/res/layout/dashboard_upgrade_item.xml b/app/src/main/res/layout/dashboard_upgrade_item.xml index 187fd76b..fb2d98c6 100644 --- a/app/src/main/res/layout/dashboard_upgrade_item.xml +++ b/app/src/main/res/layout/dashboard_upgrade_item.xml @@ -4,7 +4,8 @@ style="@style/DashboardCardItem" android:layout_width="match_parent" android:layout_height="wrap_content" - android:backgroundTint="?colorSecondaryContainer"> + android:layout_marginBottom="32dp" + android:backgroundTint="?colorTertiaryContainer"> Sincronizar Seleccionar un servidor Cuota - Toca para ver más opciones Actualizar Donar Comprobar @@ -27,8 +26,6 @@ Actualizar Continuar - Se puede hacer clic en algunas entradas para ver más detalles. - Tamaño Tamaño comprimido Notificaciones sobre la depuración diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 6b627e45..c53d221c 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -1,8 +1,150 @@ #2962ff - @color/md_theme_dark_background - @color/md_theme_dark_onBackground - @color/md_theme_dark_primary - @color/md_theme_dark_onPrimary + #95D5A7 + #00391D + #11512E + #B1F1C2 + #B6CCB9 + #223527 + #384B3C + #D2E8D4 + #A2CDDA + #023640 + #214C57 + #BEEAF7 + #FFB4AB + #690005 + #93000A + #FFDAD6 + #101510 + #DFE4DD + #101510 + #DFE4DD + #414942 + #C0C9BF + #8B938A + #414942 + #000000 + #DFE4DD + #2C322D + #2D6A44 + #B1F1C2 + #00210E + #95D5A7 + #11512E + #D2E8D4 + #0D1F13 + #B6CCB9 + #384B3C + #BEEAF7 + #001F26 + #A2CDDA + #214C57 + #101510 + #353A36 + #0A0F0B + #181D18 + #1C211C + #262B27 + #313631 + #9AD9AB + #001B0B + #619E74 + #000000 + #BAD0BD + #071A0E + #819684 + #000000 + #A7D2DE + #00191F + #6D97A3 + #000000 + #FFBAB1 + #370001 + #FF5449 + #000000 + #101510 + #DFE4DD + #101510 + #F7FCF5 + #414942 + #C5CDC3 + #9DA59C + #7D857D + #000000 + #DFE4DD + #262B27 + #12522F + #B1F1C2 + #001507 + #95D5A7 + #003F20 + #D2E8D4 + #031509 + #B6CCB9 + #273A2C + #BEEAF7 + #001419 + #A2CDDA + #0B3C46 + #101510 + #353A36 + #0A0F0B + #181D18 + #1C211C + #262B27 + #313631 + #EFFFEF + #000000 + #9AD9AB + #000000 + #EFFFEF + #000000 + #BAD0BD + #000000 + #F4FCFF + #000000 + #A7D2DE + #000000 + #FFF9F9 + #000000 + #FFBAB1 + #000000 + #101510 + #DFE4DD + #101510 + #FFFFFF + #414942 + #F5FDF3 + #C5CDC3 + #C5CDC3 + #000000 + #DFE4DD + #000000 + #003218 + #B5F6C6 + #000000 + #9AD9AB + #001B0B + #D6EDD8 + #000000 + #BAD0BD + #071A0E + #C2EEFB + #000000 + #A7D2DE + #00191F + #101510 + #353A36 + #0A0F0B + #181D18 + #1C211C + #262B27 + #313631 + + @color/md_theme_background + @color/md_theme_onBackground + @color/md_theme_primary + @color/md_theme_onPrimary \ No newline at end of file diff --git a/app/src/main/res/values-night/theme-overlays.xml b/app/src/main/res/values-night/theme-overlays.xml new file mode 100644 index 00000000..ef687933 --- /dev/null +++ b/app/src/main/res/values-night/theme-overlays.xml @@ -0,0 +1,100 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 127996e5..64775155 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -1,32 +1,52 @@ + + + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 40b4c7b0..bf56a05b 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,32 +1,52 @@ @@ -39,7 +59,7 @@ diff --git a/buildSrc/src/main/java/Dependencies.kt b/buildSrc/src/main/java/Dependencies.kt index 3f2075b4..288bd4d3 100644 --- a/buildSrc/src/main/java/Dependencies.kt +++ b/buildSrc/src/main/java/Dependencies.kt @@ -122,18 +122,18 @@ fun DependencyHandlerScope.addWorkerManager() { } fun DependencyHandlerScope.addAndroidUI() { - implementation("androidx.activity:activity-ktx:1.5.0") - implementation("androidx.fragment:fragment-ktx:1.5.0") + implementation("androidx.activity:activity-ktx:1.9.1") + implementation("androidx.fragment:fragment-ktx:1.8.2") implementation("androidx.lifecycle:lifecycle-extensions:2.2.0") - implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0") - implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.0") - implementation("androidx.lifecycle:lifecycle-common-java8:2.5.0") - implementation("androidx.lifecycle:lifecycle-process:2.5.0") - implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.0") + implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.4") + implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.8.4") + implementation("androidx.lifecycle:lifecycle-common-java8:2.8.4") + implementation("androidx.lifecycle:lifecycle-process:2.8.4") + implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.8.4") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.5.0-rc01") + implementation("com.google.android.material:material:1.12.0") } fun DependencyHandlerScope.addTesting() { diff --git a/buildSrc/src/main/java/ProjectConfig.kt b/buildSrc/src/main/java/ProjectConfig.kt index 49ca5a04..3ae41129 100644 --- a/buildSrc/src/main/java/ProjectConfig.kt +++ b/buildSrc/src/main/java/ProjectConfig.kt @@ -9,8 +9,8 @@ import java.util.Properties object ProjectConfig { const val minSdk = 23 - const val compileSdk = 33 - const val targetSdk = 33 + const val compileSdk = 34 + const val targetSdk = 34 const val packageName = "eu.darken.octi" object Version {