<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 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"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">

    <item android:state_selected="true">
        <layer-list>
            <item>
                <shape android:shape="rectangle">
                    <solid android:color="?androidprv:attr/materialColorSurfaceContainerHighest" />
                    <stroke
                        android:color="?androidprv:attr/materialColorSecondary"
                        android:width="@dimen/contrast_button_stroke_width" />
                    <corners android:radius="@dimen/contrast_button_radius"/>
                </shape>
            </item>
            <item
                android:width="24dp"
                android:height="24dp"
                android:left="57dp"
                android:top="57dp">
                <vector
                    android:width="24dp"
                    android:height="24dp"
                    android:viewportWidth="24"
                    android:viewportHeight="24"
                    android:tint="?attr/colorControlNormal">
                    <path
                        android:fillColor="?androidprv:attr/materialColorPrimary"
                        android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10c5.52,0 10,-4.48 10,-10S17.52,2 12,2zM10.59,16.6l-4.24,-4.24l1.41,-1.41l2.83,2.83l5.66,-5.66l1.41,1.41L10.59,16.6z"/>
                </vector>
            </item>
        </layer-list>
    </item>

    <item>
        <layer-list>
            <item android:top="@dimen/contrast_button_stroke_width"
                  android:bottom="@dimen/contrast_button_stroke_width"
                  android:left="@dimen/contrast_button_stroke_width"
                  android:right="@dimen/contrast_button_stroke_width">
                <shape android:shape="rectangle">
                    <solid android:color="?androidprv:attr/materialColorSurfaceContainerHighest" />
                    <corners android:radius="@dimen/contrast_button_radius"/>
                </shape>
            </item>
        </layer-list>
    </item>
</selector>