Add dark app theme
This commit is contained in:
parent
f5d9fb1a97
commit
c64cf04d22
@ -10,7 +10,7 @@
|
|||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme.Dark">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
|||||||
@ -12,6 +12,14 @@
|
|||||||
<item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme</item>
|
<item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="AppTheme.Dark" parent="Theme.AppCompat.NoActionBar">
|
||||||
|
<item name="colorPrimary">@color/light_gray</item>
|
||||||
|
<item name="colorPrimaryDark">@color/dark_gray</item>
|
||||||
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
<item name="alertDialogTheme">@style/AppCompatAlertDialogStyle.Dark</item>
|
||||||
|
<item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
||||||
|
|
||||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>
|
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>
|
||||||
@ -122,9 +130,14 @@
|
|||||||
<!-- Trying to use the colorAccent attribute (whether from ?android:attr or ?attr) WILL CRASH.-->
|
<!-- Trying to use the colorAccent attribute (whether from ?android:attr or ?attr) WILL CRASH.-->
|
||||||
<item name="colorAccent">@color/colorAccent</item>
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
</style>
|
</style>
|
||||||
|
<style name="AppCompatAlertDialogStyle.Dark" parent="Theme.AppCompat.Dialog.Alert">
|
||||||
|
<!-- Trying to use the colorAccent attribute (whether from ?android:attr or ?attr) WILL CRASH.-->
|
||||||
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="BottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog">
|
<style name="BottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog">
|
||||||
<item name="bottomSheetStyle">@style/ModalStyle</item>
|
<item name="bottomSheetStyle">@style/ModalStyle</item>
|
||||||
|
<!--TODO: See if defining a colorAccent item works.-->
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="ModalStyle" parent="Widget.Design.BottomSheet.Modal">
|
<style name="ModalStyle" parent="Widget.Design.BottomSheet.Modal">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user