Introduces RN Alert component styling update
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<font
|
||||||
|
android:font="@font/jost400"
|
||||||
|
android:fontStyle="normal"
|
||||||
|
android:fontWeight="400" />
|
||||||
|
</font-family>
|
||||||
@@ -9,4 +9,9 @@
|
|||||||
|
|
||||||
<!-- a secondary color for controls like checkboxes and text fields -->
|
<!-- a secondary color for controls like checkboxes and text fields -->
|
||||||
<color name="colorAccent">#4FAFA7</color>
|
<color name="colorAccent">#4FAFA7</color>
|
||||||
|
|
||||||
|
<!-- custom colors -->
|
||||||
|
<color name="grey">#A5A5A5</color>
|
||||||
|
<color name="orange">#F38337</color>
|
||||||
|
<color name="purple">#3A2671</color>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -3,7 +3,37 @@
|
|||||||
<!-- Base application theme. -->
|
<!-- Base application theme. -->
|
||||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
<!-- Customize your theme here. -->
|
<!-- Customize your theme here. -->
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
<item name="colorAccent">@color/colorAccent</item>
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
|
||||||
|
<item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert">
|
||||||
|
<item name="android:buttonBarNegativeButtonStyle">@style/NegativeButtonStyle</item>
|
||||||
|
<item name="android:buttonBarPositiveButtonStyle">@style/PositiveButtonStyle</item>
|
||||||
|
<item name="android:fontFamily">@font/jost_normal</item>
|
||||||
|
<item name="android:textColorPrimary">@color/grey</item>
|
||||||
|
<item name="android:windowTitleStyle">@style/TitleStyle</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="NegativeButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
|
||||||
|
<item name="android:textColor">@color/grey</item>
|
||||||
|
<item name="android:textSize">18sp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="PositiveButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
|
||||||
|
<item name="android:textColor">@color/orange</item>
|
||||||
|
<item name="android:textSize">18sp</item>
|
||||||
|
<item name="android:textStyle">bold</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="TitleStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
|
||||||
|
<item name="android:gravity">left</item>
|
||||||
|
<item name="android:textColor">@color/purple</item>
|
||||||
|
<item name="android:textSize">22sp</item>
|
||||||
|
<item name="android:textStyle">bold</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user