Disable force dark theme on Android >9 (#1071)

This commit is contained in:
Mikołaj Pich 2021-01-11 09:53:19 +01:00 committed by GitHub
parent 205bcf9c22
commit d332369872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools"> <resources xmlns:tools="http://schemas.android.com/tools">
<style name="WulkanowyTheme" parent="@style/Theme.MaterialComponents"> <style name="WulkanowyTheme" parent="@style/Theme.MaterialComponents">
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
<item name="colorPrimary">@color/colorPrimaryLight</item> <item name="colorPrimary">@color/colorPrimaryLight</item>
<item name="colorSecondary">@color/colorPrimaryLight</item> <item name="colorSecondary">@color/colorPrimaryLight</item>
<item name="colorTimetableChange">@color/timetable_change_light</item> <item name="colorTimetableChange">@color/timetable_change_light</item>

View File

@ -1,8 +1,9 @@
<resources> <resources xmlns:tools="http://schemas.android.com/tools">
<style name="WulkanowyTheme" parent="BaseWulkanowyTheme" /> <style name="WulkanowyTheme" parent="BaseWulkanowyTheme" />
<style name="BaseWulkanowyTheme" parent="@style/Theme.MaterialComponents.Light"> <style name="BaseWulkanowyTheme" parent="@style/Theme.MaterialComponents.Light">
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
<item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorSecondary">@color/colorPrimary</item> <item name="colorSecondary">@color/colorPrimary</item>
<item name="colorOnSecondary">@android:color/white</item> <item name="colorOnSecondary">@android:color/white</item>