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

Commit 1f320fa3 authored by Yi-Ling Chuang's avatar Yi-Ling Chuang
Browse files

Centerize contents of contextual cards and remove white space.

Decrease the minHeight of the two buttons in the dismissal view and have
the contents centered.

Change-Id: I806e8ccae88e693dc222a13940597fd33684ee70
Fixes: 120086509
Test: visual
parent 6be224a9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
            style="@style/ContextualCardDismissalButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/homepage_card_dismissal_margin_bottom"
            android:text="@string/contextual_card_dismiss_keep"/>

        <Button
@@ -47,6 +48,7 @@
            style="@style/ContextualCardDismissalButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/homepage_card_dismissal_margin_bottom"
            android:text="@string/contextual_card_dismiss_remove"/>

    </LinearLayout>
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
            android:id="@+id/slice_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:paddingStart="@dimen/homepage_card_padding_start"
            android:paddingEnd="@dimen/homepage_card_padding_end"/>

+1 −0
Original line number Diff line number Diff line
@@ -330,6 +330,7 @@
    <dimen name="homepage_half_card_padding_top">12dp</dimen>
    <dimen name="homepage_half_card_padding_bottom">16dp</dimen>
    <dimen name="homepage_half_card_title_margin_top">12dp</dimen>
    <dimen name="homepage_card_dismissal_margin_bottom">2dp</dimen>

    <!-- Horizontal divider size and margin -->
    <dimen name="horizontal_divider_margin_top">4dp</dimen>
+1 −0
Original line number Diff line number Diff line
@@ -459,6 +459,7 @@

    <style name="ContextualCardDismissalButton"
           parent="android:Widget.DeviceDefault.Button.Borderless.Colored">
        <item name="android:minHeight">16dp</item>
        <item name="android:textAllCaps">false</item>
    </style>