mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Create dedicated file for alert dialog style
This commit is contained in:
parent
d60e68c4ee
commit
b75a58b4d0
2 changed files with 28 additions and 24 deletions
28
vector/src/main/res/values/styles_alert_dialog.xml
Normal file
28
vector/src/main/res/values/styles_alert_dialog.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="VectorAlertDialogStyleLight" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
||||
<item name="colorPrimary">@color/palette_element_green</item>
|
||||
<item name="colorSecondary">@color/palette_element_green</item>
|
||||
<item name="colorSurface">@color/element_system_light</item>
|
||||
<item name="colorOnSurface">@color/element_content_primary_light</item>
|
||||
<item name="colorError">@color/element_alert_light</item>
|
||||
<!--item name="alertDialogStyle">@style/MaterialAlertDialog.App</item>
|
||||
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.App.Title.Text</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/Widget.App.Button</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.App.Button</item-->
|
||||
</style>
|
||||
|
||||
<style name="VectorAlertDialogStyleDark" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
||||
<item name="colorPrimary">@color/palette_element_green</item>
|
||||
<item name="colorSecondary">@color/palette_element_green</item>
|
||||
<item name="colorSurface">@color/element_system_dark</item>
|
||||
<item name="colorOnSurface">@color/element_content_primary_dark</item>
|
||||
<item name="colorError">@color/element_alert_dark</item>
|
||||
<!--item name="alertDialogStyle">@style/MaterialAlertDialog.App</item>
|
||||
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.App.Title.Text</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/Widget.App.Button</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.App.Button</item-->
|
||||
</style>
|
||||
|
||||
</resources>
|
|
@ -14,30 +14,6 @@
|
|||
<item name="colorControlNormal">?colorSecondary</item>
|
||||
</style>
|
||||
|
||||
<style name="VectorAlertDialogStyleLight" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
||||
<item name="colorPrimary">@color/palette_element_green</item>
|
||||
<item name="colorSecondary">@color/palette_element_green</item>
|
||||
<item name="colorSurface">@color/element_system_light</item>
|
||||
<item name="colorOnSurface">@color/element_content_primary_light</item>
|
||||
<item name="colorError">@color/element_alert_light</item>
|
||||
<!--item name="alertDialogStyle">@style/MaterialAlertDialog.App</item>
|
||||
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.App.Title.Text</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/Widget.App.Button</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.App.Button</item-->
|
||||
</style>
|
||||
|
||||
<style name="VectorAlertDialogStyleDark" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
||||
<item name="colorPrimary">@color/palette_element_green</item>
|
||||
<item name="colorSecondary">@color/palette_element_green</item>
|
||||
<item name="colorSurface">@color/element_system_dark</item>
|
||||
<item name="colorOnSurface">@color/element_content_primary_dark</item>
|
||||
<item name="colorError">@color/element_alert_dark</item>
|
||||
<!--item name="alertDialogStyle">@style/MaterialAlertDialog.App</item>
|
||||
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.App.Title.Text</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/Widget.App.Button</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.App.Button</item-->
|
||||
</style>
|
||||
|
||||
<!-- TextInputLayout -->
|
||||
<style name="VectorTextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox" />
|
||||
|
||||
|
|
Loading…
Reference in a new issue