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

Commit 1d1d4e0b authored by Longbo's avatar Longbo Committed by “Longbo
Browse files

a11y: Update ScrollPanel UI

Update scroll panel UI to match the spec, focusing on the panel and
arrow container shape. Details like color, shadow, opacity, and hover
effects will be addressed in the next CL.

Video:
 - Before: http://shortn/_Vx8VNyxHA0
 - After:  http://shortn/_Qc0eSd9rNP

Bug: b/400964604
Test: AutoclickControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I906bdffa976c034b9a8af80874e8bb7fa95bd246
parent ac21435e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,9 +18,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    android:viewportHeight="24"
    android:viewportWidth="24">
    <path
        android:fillColor="@color/materialColorPrimary"
        android:pathData="M12,20l8,-8h-5V4h-6v8H4z"/>
        android:pathData="M13,4L13,16.17L18.6,10.57L20,12L12,20L4,12L5.4,10.57L11,16.17L11,4L13,4Z" />
</vector>
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     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="67dp"
    android:height="59dp"
    android:viewportHeight="59"
    android:viewportWidth="67">
    <path
        android:fillColor="@color/materialColorSurfaceContainer"
        android:pathData="M24.922 1.601C27.7621 2.5016 30.7853 2.9909 33.9216 2.9989C37.0579 2.9909 40.081 2.5016 42.9211 1.601C46.3143 0.525 50.0835 0.6071 53.6673 1.7369C57.6831 3.0029 60.8913 5.2153 63.2004 8.5077C67.4543 14.5732 67.8946 22.9766 65.7176 32.0509C62.1456 46.9406 49.733 58.9603 33.9216 58.9999C18.1102 58.9603 5.69753 46.9406 2.12551 32.0509C-0.0514298 22.9766 0.388834 14.5732 4.64281 8.5077C6.95185 5.2153 10.1601 3.0029 14.1759 1.7369C17.7597 0.6071 21.5288 0.525 24.922 1.601Z"
        android:pivotX="33.5"
        android:pivotY="29.5"
        android:rotation="180" />
</vector>
+4 −3
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,8 +18,8 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    android:viewportHeight="24"
    android:viewportWidth="24">
    <path
        android:fillColor="@color/materialColorPrimary"
        android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z" />
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     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="55dp"
    android:height="55dp"
    android:viewportHeight="55"
    android:viewportWidth="55">
    <path
        android:fillColor="@color/materialColorSurfaceContainer"
        android:pathData="M27.5,0C12.312,0 0,12.312 0,27.5C0,42.688 12.312,55 27.5,55C42.688,55 55,42.688 55,27.5C55,12.312 42.688,0 27.5,0Z" />
</vector>
+4 −3
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,9 +18,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    android:viewportHeight="24"
    android:viewportWidth="24">
    <path
        android:fillColor="@color/materialColorPrimary"
        android:pathData="M4,12l8,8v-5h8v-6h-8V4z"/>
        android:pathData="M20,11L7.83,11L13.43,5.4L12,4L4,12L12,20L13.43,18.6L7.83,13L20,13L20,11Z" />
</vector>
Loading