Hardcode @color/black

Some custom ROMs do strange stuff with @android:color/black, messing up the themes.
This makes sure at least the black theme is always black (for OLED devices).
This commit is contained in:
Jakob Nixdorf 2019-09-17 16:22:11 +02:00
parent 3fa60bcc12
commit be0926bda1
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC
3 changed files with 6 additions and 4 deletions

View file

@ -11,7 +11,7 @@
</style>
<style name="AppTheme.Black" parent="AppBaseTheme.Black">
<item name="android:navigationBarColor">?android:attr/colorBackground</item>
<item name="android:navigationBarColor">@color/black</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
</resources>

View file

@ -14,6 +14,8 @@
<color name="warning_red">#b71c1c</color> <!-- material_red_900 -->
<color name="black">#000000</color>
<color name="dark_thumbnail_background">#ffe0e0e0</color> <!-- material_grey_300 -->
<color name="fab_small_label_background">#212121</color>

View file

@ -91,7 +91,7 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowBackground">@android:color/black</item>
<item name="windowBackground">@color/black</item>
<item name="thumbnailBackground">@color/dark_thumbnail_background</item>
<item name="colorGithub">@color/github_light</item>
@ -100,7 +100,7 @@
<item name="cardStyle">@style/CardViewStyle.Black</item>
<item name="dialogTheme">@style/DialogTheme.Dark</item>
<item name="about_libraries_card">@android:color/black</item>
<item name="about_libraries_card">@color/black</item>
<item name="about_libraries_title_openSource">@color/about_libraries_text_openSource_dark</item>
<item name="about_libraries_text_openSource">@color/about_libraries_text_openSource_dark</item>
<item name="about_libraries_dividerDark_openSource">@color/about_libraries_dividerDark_openSource_dark</item>
@ -110,7 +110,7 @@
<style name="AppTheme.Black" parent="AppBaseTheme.Black"/>
<style name="CardViewStyle.Black">
<item name="cardBackgroundColor">@android:color/black</item>
<item name="cardBackgroundColor">@color/black</item>
</style>
<style name="AppTheme.Black.NoActionBar">