From f2d15e4730a5e1966053a9637778ed8830f23500 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 4 Oct 2022 19:47:50 +0600 Subject: [PATCH] 712-Fix_intro_page_ui issue: https://gitlab.e.foundation/e/os/backlog/-/issues/712 --- .../davdroid/ui/intro/IntroActivity.kt | 2 +- .../res/drawable/ic_launcher_foreground.xml | 41 ++++--------------- .../main/res/layout/activity_permissions.xml | 4 +- app/src/main/res/layout/activity_tasks.xml | 3 +- .../layout/intro_battery_optimizations.xml | 4 +- app/src/main/res/layout/intro_open_source.xml | 4 +- app/src/main/res/layout/intro_welcome.xml | 2 +- app/src/main/res/values-night/styles.xml | 14 ------- 8 files changed, 20 insertions(+), 54 deletions(-) delete mode 100644 app/src/main/res/values-night/styles.xml diff --git a/app/src/main/java/at/bitfire/davdroid/ui/intro/IntroActivity.kt b/app/src/main/java/at/bitfire/davdroid/ui/intro/IntroActivity.kt index bb259812c..b4cae9640 100644 --- a/app/src/main/java/at/bitfire/davdroid/ui/intro/IntroActivity.kt +++ b/app/src/main/java/at/bitfire/davdroid/ui/intro/IntroActivity.kt @@ -58,7 +58,7 @@ class IntroActivity: AppIntro2() { addSlide(factory.create()) } - setBarColor(ResourcesCompat.getColor(resources, R.color.primaryDarkColor, null)) + setBarColor(ResourcesCompat.getColor(resources, R.color.accentColor, null)) isSkipButtonEnabled = false } diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml index 5a27b1862..7ac779c05 100644 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -1,36 +1,9 @@ - - - - - - - - - - - - - \ No newline at end of file + android:height="108dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + diff --git a/app/src/main/res/layout/activity_permissions.xml b/app/src/main/res/layout/activity_permissions.xml index 4862d5480..0bb9b4c86 100644 --- a/app/src/main/res/layout/activity_permissions.xml +++ b/app/src/main/res/layout/activity_permissions.xml @@ -25,7 +25,8 @@ + android:paddingBottom="@dimen/card_padding" + android:background="@color/foregroundColor"> diff --git a/app/src/main/res/layout/activity_tasks.xml b/app/src/main/res/layout/activity_tasks.xml index 3a3f0809f..98ae2209e 100644 --- a/app/src/main/res/layout/activity_tasks.xml +++ b/app/src/main/res/layout/activity_tasks.xml @@ -28,7 +28,8 @@ + android:layout_marginBottom="@dimen/card_padding" + android:background="@color/foregroundColor"> + app:contentPadding="@dimen/card_padding" + android:background="@color/foregroundColor"> + android:layout_height="wrap_content" + android:background="@color/foregroundColor"> + android:background="@color/accentColor"> - - - @android:color/white - @android:color/black - - @android:color/white - @color/grey100 - - @color/grey800 - @color/red400 - - - \ No newline at end of file -- GitLab