Add ripples to negative buttons
For the negative buttons (buttons on the left side) of screen lock setup and fingerprint setup screens, instead of theming it like a text link, inherit from the borderless button and set the highlight color to color accent. Bug: 29905448 Change-Id: I4a3d28d4a0658740d0cb622e40031ab0ca22e6a0
This commit is contained in:
@@ -286,15 +286,18 @@
|
|||||||
<item name="android:singleLine">true</item>
|
<item name="android:singleLine">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SetupWizardButton.Negative" parent="@android:style/TextAppearance.Widget.TextView">
|
<style name="SetupWizardButton.Negative" parent="@android:style/Widget.Material.Button.Borderless.Colored">
|
||||||
<item name="android:background">@null</item>
|
|
||||||
<item name="android:minWidth">0dp</item>
|
<item name="android:minWidth">0dp</item>
|
||||||
<item name="android:textAllCaps">false</item>
|
<item name="android:textAllCaps">false</item>
|
||||||
<item name="android:textColor">?android:attr/colorControlActivated</item>
|
<item name="android:theme">@style/AccentColorHighlightBorderlessButton</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SetupWizardButton.Positive" parent="@android:style/Widget.Material.Button.Colored" />
|
<style name="SetupWizardButton.Positive" parent="@android:style/Widget.Material.Button.Colored" />
|
||||||
|
|
||||||
|
<style name="AccentColorHighlightBorderlessButton">
|
||||||
|
<item name="android:colorControlHighlight">?android:attr/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="vpn_label">
|
<style name="vpn_label">
|
||||||
<item name="android:layout_width">match_parent</item>
|
<item name="android:layout_width">match_parent</item>
|
||||||
<item name="android:layout_height">wrap_content</item>
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
Reference in New Issue
Block a user