Fixed dialog buttons color

This commit is contained in:
Daniele Verducci (Slimpenguin) 2024-02-22 08:23:19 +01:00
parent 053f7401b8
commit a752a85a3f
2 changed files with 17 additions and 0 deletions

View File

@ -26,6 +26,7 @@
<color name="disabled">#666</color> <color name="disabled">#666</color>
<color name="systemBar">@color/defaultBackground</color> <color name="systemBar">@color/defaultBackground</color>
<color name="defaultBackground">#fff</color> <color name="defaultBackground">#fff</color>
<color name="inactive">#ccc</color>
<!-- List Colors --> <!-- List Colors -->
<color name="text_color">#333</color> <color name="text_color">#333</color>

View File

@ -26,6 +26,8 @@
<!-- Generic background --> <!-- Generic background -->
<item name="android:windowBackground">@color/defaultBackground</item> <item name="android:windowBackground">@color/defaultBackground</item>
<item name="alertDialogTheme">@style/AlertDialogTheme</item>
</style> </style>
<style name="AppTheme" parent="BaseTheme"/> <style name="AppTheme" parent="BaseTheme"/>
@ -52,4 +54,18 @@
<item name="android:textColor">@color/white</item> <item name="android:textColor">@color/white</item>
</style> </style>
<!-- Alertdialogs -->
<style name="AlertDialogTheme" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
<item name="buttonBarNegativeButtonStyle">@style/NegativeButtonStyle</item>
<item name="buttonBarPositiveButtonStyle">@style/PositiveButtonStyle</item>
</style>
<style name="NegativeButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">@color/inactive</item>
</style>
<style name="PositiveButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">@color/defaultBrand</item>
</style>
</resources> </resources>