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

Commit ebcf788b authored by Bartosz Chominski's avatar Bartosz Chominski Committed by Bartosz Chomiński
Browse files

Update app handle to match the UI spec

Makes the rounding at the ends of the app handle semicircular.
Centers the handle vertically on the status bar.

UI spec: https://www.figma.com/design/flC1tPqknJnIVa8m5fhUQv/App-Headers-%26-Menus-(V)?node-id=7880-36203

Bug: 343720907
Flag: com.android.window.flags.enable_desktop_windowing_mode
Test: manual
Change-Id: I0ed3d3bee1f04a4afcc0bfbaa6253117acce4333
parent 673ab751
Loading
Loading
Loading
Loading
+7 −17
Original line number Diff line number Diff line
@@ -13,20 +13,10 @@
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<vector
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="128dp"
    android:height="4dp"
    android:viewportWidth="128"
    android:viewportHeight="4"
    >
    <group>
        <clip-path
            android:pathData="M2 0H126C127.105 0 128 0.895431 128 2C128 3.10457 127.105 4 126 4H2C0.895431 4 0 3.10457 0 2C0 0.895431 0.895431 0 2 0Z"
            />
        <path
            android:pathData="M0 0V4H128V0"
            android:fillColor="@android:color/black"
            />
    </group>
</vector>

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="@android:color/black"/>
    <corners android:radius="2dp"/>
    <size android:height="4dp"/>
</shape>
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
    android:id="@+id/desktop_mode_caption"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center_horizontal">
    android:gravity="center">

    <com.android.wm.shell.windowdecor.HandleImageButton
        android:id="@+id/caption_handle"