Files
lawnchair/wmshell/res/drawable/letterbox_restart_button_background_ripple.xml
2024-11-02 10:55:28 +08:00

44 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2023 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.
-->
<inset xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:insetTop="@dimen/letterbox_restart_dialog_vertical_inset"
android:insetBottom="@dimen/letterbox_restart_dialog_vertical_inset">
<ripple android:color="@color/letterbox_restart_dismiss_button_background_ripple">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<corners android:radius="@dimen/letterbox_restart_dialog_button_radius"/>
<solid android:color="@android:color/white"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="@android:color/transparent"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="?androidprv:attr/colorAccentPrimaryVariant"/>
<corners android:radius="@dimen/letterbox_restart_dialog_button_radius"/>
<padding android:left="@dimen/letterbox_restart_dialog_horizontal_padding"
android:top="@dimen/letterbox_restart_dialog_vertical_padding"
android:right="@dimen/letterbox_restart_dialog_horizontal_padding"
android:bottom="@dimen/letterbox_restart_dialog_vertical_padding"/>
</shape>
</item>
</ripple>
</inset>