mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-29 09:19:01 +03:00
Create CallToAction button style
This commit is contained in:
parent
2aab94acb4
commit
223b33fa65
3 changed files with 6 additions and 11 deletions
library/ui-styles/src/main/res/values
vector/src/main/res/layout
|
@ -10,6 +10,11 @@
|
||||||
<item name="lineHeight">24sp</item>
|
<item name="lineHeight">24sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="Widget.Vector.Button.CallToAction" parent="Widget.Vector.Button">
|
||||||
|
<item name="android:backgroundTint">@color/button_background_tint_selector</item>
|
||||||
|
<item name="android:textColor">@android:color/white</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="Widget.Vector.Button.Destructive">
|
<style name="Widget.Vector.Button.Destructive">
|
||||||
<item name="android:minWidth">94dp</item>
|
<item name="android:minWidth">94dp</item>
|
||||||
<item name="materialThemeOverlay">@style/VectorMaterialThemeOverlayDestructive</item>
|
<item name="materialThemeOverlay">@style/VectorMaterialThemeOverlayDestructive</item>
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
|
|
||||||
<style name="Widget.Vector.Button.CreatePoll" parent="Widget.Vector.Button">
|
|
||||||
<item name="android:backgroundTint">@color/button_background_tint_selector</item>
|
|
||||||
<item name="android:textAppearance">@style/TextAppearance.Vector.Button</item>
|
|
||||||
<item name="android:textColor">@android:color/white</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</resources>
|
|
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/createPollButton"
|
android:id="@+id/createPollButton"
|
||||||
style="@style/Widget.Vector.Button.CreatePoll"
|
style="@style/Widget.Vector.Button.CallToAction"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="16dp"
|
||||||
|
|
Loading…
Add table
Reference in a new issue