Added green color and used it in alert dialog theme.

This commit is contained in:
Juha Heinanen
2020-06-30 12:06:03 +03:00
parent bf75c685bf
commit e23af90ff6
2 changed files with 14 additions and 2 deletions

View File

@ -11,4 +11,5 @@
<color name="colorAccent">#b00020</color>
<color name="colorBaresip">#0ca1fd</color>
<color name="colorWhite">#ffffff</color>
<color name="colorGreen">#01df01</color>
</resources>

View File

@ -1,8 +1,7 @@
<resources>
<!-- Base application theme. -->
<!-- Base application theme -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
@ -17,4 +16,16 @@
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<!-- Alert dialog theme -->
<style name="AlertDialogTheme" parent="ThemeOverlay.AppCompat.Dialog.Alert">
<item name="buttonBarPositiveButtonStyle">@style/PositiveButtonStyle</item>
<item name="buttonBarNegativeButtonStyle">@style/NegativeButtonStyle</item>
</style>
<style name="PositiveButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
<item name="android:textColor">@color/colorGreen</item>
</style>
<style name="NegativeButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
<item name="android:textColor">@color/colorAccent</item>
</style>
</resources>