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

Commit e72f621e authored by Hyunki Kim's avatar Hyunki Kim Committed by Tyler Freeman
Browse files

feat(magnification settings): Add Diagonal resize handles for Window magnification

Test: `atest SystemUITests:com.android.systemui.accessibility.WindowMagnificationControllerTest`

Bug: b/188136191

Change-Id: I270689671765f4287f91689e5acb82711bef4885
parent eb803fd5
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2022 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.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">
    <solid android:color="@color/accessibility_window_magnifier_button_bg" />
    <size
        android:width="40dp"
        android:height="40dp"/>
    <corners android:radius="2dp"/>
    <stroke
        android:color="@color/accessibility_window_magnifier_button_bg_stroke"
        android:width="1dp" />
 </shape>
 No newline at end of file
+33 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2022 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="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:pathData="M0,24l0,-4l24,-0l0,4z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
  <path
      android:pathData="M0,24l0,-24l4,-0l0,24z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
</vector>
+33 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2022 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="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:pathData="M24,24l-4,-0l-0,-24l4,-0z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
  <path
      android:pathData="M24,24l-24,-0l-0,-4l24,-0z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
</vector>
+33 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2022 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="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:pathData="M0,0h4v24h-4z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
  <path
      android:pathData="M0,0h24v4h-24z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
</vector>
+33 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2022 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="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:pathData="M24,0l-0,4l-24,0l-0,-4z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
  <path
      android:pathData="M24,0l-0,24l-4,0l-0,-24z"
      android:strokeWidth="1"
      android:fillColor="@color/accessibility_window_magnifier_corner_view_color"
      android:fillType="evenOdd"
      android:strokeColor="#00000000"/>
</vector>
Loading