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

Commit 22a41bca authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[Screen share] UX tweaks to the screen share & cast permission dialogs.

1) Move the "Cancel" button to the end side.
2) Make the text be start-aligned.

Fixes: 360291114
Flag: NONE small UX changes

Test: Verify share-to-app permission dialog in LTR and RTL, both entire
screen and single app options
Test: Ditto for cast permission dialog
Test: Ditto for system screen record permission dialog
Test: Verify other SysUI dialogs are unchanged
Test: Screenshot tests
Change-Id: I7aadf23026eb499eefc26cd90393258f135fd1db

Change-Id: I7e13b5d48d324547500043c27cc40409fa8d5ab6
parent ed48a531
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@
        <Button
            android:id="@android:id/button1"
            style="?android:attr/buttonBarPositiveButtonStyle"
            android:layout_marginStart="8dp"
            android:layout_marginStart="@dimen/dialog_button_side_margin"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </com.android.internal.widget.ButtonBarLayout>
+5 −8
Original line number Diff line number Diff line
@@ -64,30 +64,27 @@
            android:layout_height="wrap_content"
            android:text="@string/screenrecord_permission_dialog_warning_entire_screen"
            style="@style/TextAppearance.Dialog.Body.Message"
            android:gravity="start"/>
            android:gravity="start"
            android:textAlignment="gravity"/>

        <!-- Buttons -->
        <com.android.internal.widget.ButtonBarLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:layout_marginTop="@dimen/screenrecord_buttons_margin_top">
            android:layout_marginTop="@dimen/screenrecord_buttons_margin_top"
            android:gravity="end">
            <Button
                android:id="@android:id/button2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="0"
                android:text="@string/cancel"
                style="@style/Widget.Dialog.Button.BorderButton" />
            <Space
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"/>
            <Button
                android:id="@android:id/button1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="0"
                android:layout_marginStart="@dimen/dialog_button_side_margin"
                android:text="@string/screenrecord_continue"
                style="@style/Widget.Dialog.Button" />
        </com.android.internal.widget.ButtonBarLayout>
+1 −0
Original line number Diff line number Diff line
@@ -1751,6 +1751,7 @@

    <!-- System UI Dialog -->
    <dimen name="dialog_title_text_size">24sp</dimen>
    <dimen name="dialog_button_side_margin">8dp</dimen>

    <!-- Internet panel related dimensions -->
    <dimen name="internet_dialog_list_max_height">662dp</dimen>