Files
lawnchair/quickstep/res/drawable/app_chip_menu_item_bg.xml
Jordan Silva 3d348a0d27 Add focus border animation to IconAppChipView
Fix: 366177160
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual using Keyboard. Access the app chip via TAB and navigate through the task menu.
Test: Manual using Mouse. Hover over the Chip and the Task Menu.
Change-Id: I785ad8723e5255186d744a20992ac0cd0968b380
2025-05-21 14:20:49 -07:00

64 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 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.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:state_focused="true" android:state_hovered="true">
<layer-list>
<item android:end=".5dp" android:start=".5dp">
<shape android:shape="rectangle">
<corners android:radius="@dimen/app_chip_round_corner_radius" />
<solid android:color="@color/app_chip_menu_item_color_fg" />
<stroke android:width="@dimen/app_chip_keyboard_border_width" android:color="@color/materialColorSecondary" />
</shape>
</item>
</layer-list>
</item>
<item android:state_enabled="true" android:state_focused="true">
<layer-list>
<item android:end=".5dp" android:start=".5dp">
<shape android:shape="rectangle">
<corners android:radius="@dimen/task_menu_corner_radius" />
<stroke android:width="@dimen/app_chip_keyboard_border_width" android:color="@color/materialColorSecondary" />
</shape>
</item>
</layer-list>
</item>
<item android:state_enabled="true" android:state_hovered="true">
<layer-list>
<item android:end=".5dp" android:start=".5dp">
<shape android:shape="rectangle">
<corners android:radius="@dimen/app_chip_round_corner_radius" />
<solid android:color="@color/app_chip_menu_item_color_fg" />
</shape>
</item>
</layer-list>
</item>
<item android:state_enabled="true" android:state_pressed="true">
<layer-list>
<item android:end=".5dp" android:start=".5dp">
<shape android:shape="rectangle">
<corners android:radius="@dimen/app_chip_round_corner_radius" />
<solid android:color="@color/app_chip_menu_item_color_fg" />
</shape>
</item>
</layer-list>
</item>
<item>
<shape>
<solid android:color="@color/materialColorSurfaceBright" />
</shape>
</item>
</selector>