Compatability with both themes

This commit is contained in:
Shradheya Thakre 2018-01-23 15:38:47 +08:00
parent f5bb50a704
commit b4e577fedf
2 changed files with 3 additions and 0 deletions

View file

@ -7,6 +7,7 @@
<attr name="buttonBackground" format="reference"/> <attr name="buttonBackground" format="reference"/>
<attr name="uploadOverlayBackground" format="reference"/> <attr name="uploadOverlayBackground" format="reference"/>
<attr name="spinnerTheme" format="reference"/> <attr name="spinnerTheme" format="reference"/>
<attr name="iconsTheme" format="reference"/>
<declare-styleable name="CompatTextView"> <declare-styleable name="CompatTextView">
<attr name="drawablePadding" format="dimension"/> <attr name="drawablePadding" format="dimension"/>

View file

@ -13,6 +13,7 @@
<item name="buttonBackground">@color/button_background_dark</item> <item name="buttonBackground">@color/button_background_dark</item>
<item name="uploadOverlayBackground">@color/upload_overlay_background_dark</item> <item name="uploadOverlayBackground">@color/upload_overlay_background_dark</item>
<item name="spinnerTheme">@style/DarkSpinnerTheme</item> <item name="spinnerTheme">@style/DarkSpinnerTheme</item>
<item name="iconsTheme">@color/main_background_light</item>
</style> </style>
<style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
@ -27,6 +28,7 @@
<item name="buttonBackground">@color/button_background_light</item> <item name="buttonBackground">@color/button_background_light</item>
<item name="uploadOverlayBackground">@color/upload_overlay_background_light</item> <item name="uploadOverlayBackground">@color/upload_overlay_background_light</item>
<item name="spinnerTheme">@style/LightSpinnerTheme</item> <item name="spinnerTheme">@style/LightSpinnerTheme</item>
<item name="iconsTheme">@color/main_background_dark</item>
</style> </style>
<style name="DarkSpinnerTheme" parent="DarkAppTheme"> <style name="DarkSpinnerTheme" parent="DarkAppTheme">