Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b8eea38 authored by Jason Chiu's avatar Jason Chiu
Browse files

Refine the ripple effect and text style of ActionPrimaryButton

- The background color of the button is inverted, which has to be
  applied to inverse ripple colors.
- Update the font size and family.

Fixes: 190338973
Test: visual, manual
Change-Id: Ia7447b5e2f64546e0f011cca904d1317d6a38cf1
parent baecf00c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -49,5 +49,8 @@
    <color name="biometric_enroll_intro_color_icon">#669df6</color>
    <color name="biometric_enroll_intro_color_outline">#5e5e5e</color>
    <color name="fingerprint_enrollment_finish_color_outline">#669df6</color>

    <!-- Material inverse ripple color, useful for inverted backgrounds. -->
    <color name="ripple_material_inverse">@*android:color/ripple_material_light</color>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -207,4 +207,7 @@

    <!-- Fingerprint enrollment color -->
    <color name="fingerprint_enrollment_finish_color_outline">#1A73E8</color>

    <!-- Material inverse ripple color, useful for inverted backgrounds. -->
    <color name="ripple_material_inverse">@*android:color/ripple_material_dark</color>
</resources>
+4 −2
Original line number Diff line number Diff line
@@ -407,13 +407,15 @@

    <style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button.Colored">
        <item name="android:theme">@style/RoundedCornerThemeOverlay</item>
        <item name="android:textSize">16sp</item>
        <item name="android:fontFamily">@*android:string/config_bodyFontFamilyMedium</item>
    </style>
    <style name="ActionSecondaryButton" parent="android:Widget.DeviceDefault.Button"/>

    <style name="RoundedCornerThemeOverlay">
        <item name="android:buttonCornerRadius">24dp</item>
        <item name="android:paddingStart">16dp</item>
        <item name="android:paddingEnd">16dp</item>
        <item name="android:paddingHorizontal">16dp</item>
        <item name="android:colorControlHighlight">@color/ripple_material_inverse</item>
    </style>

    <style name="LockPatternContainerStyle">