From fce34cced1661f8bd089b7404503efc83cbc0c70 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Wed, 15 Nov 2023 15:59:01 +0100 Subject: [PATCH] fix: Update themes to correct poll/black theme issues (#255) `Theme.Pachli` was being overriden on v29+ devices which meant that poll options were showing with too much padding. Fix that by using `AppTheme` as the final theme, and basing that off `Theme.Pachli`. Black themes were using dark grey for toolbar and tab backgrounds, so fix that too for a seamless experience with the black theme. --- app/lint-baseline.xml | 26 +++++++++++++------------- app/src/main/AndroidManifest.xml | 2 +- app/src/main/res/values-v29/themes.xml | 2 +- app/src/main/res/values/styles.xml | 13 +++++++++++++ 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index 5f8aa93e5..7dfdd1e49 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -1274,7 +1274,7 @@ @@ -2060,7 +2060,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> @@ -2511,7 +2511,7 @@ errorLine2=" ~~~~~~~"> @@ -2522,7 +2522,7 @@ errorLine2=" ~~~~~~~"> @@ -3644,7 +3644,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~"> @@ -3754,7 +3754,7 @@ errorLine2=" ~~~~~~~~~"> diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 39f38018c..4c6a5a12e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,7 +19,7 @@ android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - android:theme="@style/Theme.Pachli" + android:theme="@style/AppTheme" android:usesCleartextTraffic="false" android:localeConfig="@xml/locales_config"> diff --git a/app/src/main/res/values-v29/themes.xml b/app/src/main/res/values-v29/themes.xml index 2d18f7d50..1def68971 100644 --- a/app/src/main/res/values-v29/themes.xml +++ b/app/src/main/res/values-v29/themes.xml @@ -16,7 +16,7 @@ --> - + @@ -143,6 +145,17 @@ ?attr/colorControlNormal + + @style/Pachli.Widget.Toolbar.Black + @style/Pachli.Widget.Material3.TabLayout + + + + +