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

Commit 63a13362 authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "Add new preference round corner background in SettingsTheme" into main

parents f42aa0cd d7e5e455
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
<?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">
    <item android:state_pressed="true" android:color="@color/settingslib_materialColorSecondaryContainer"/>
    <item android:state_selected="true" android:color="@color/settingslib_materialColorSecondaryContainer"/>
    <item android:state_activated="true" android:color="@color/settingslib_materialColorSecondaryContainer"/>
    <item android:color="@color/settingslib_materialColorSurfaceContainerHighest"/> <!-- not selected -->
</selector>
 No newline at end of file
+30 −0
Original line number Diff line number Diff line
<?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.
  -->

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:left="?android:attr/listPreferredItemPaddingStart"
        android:right="?android:attr/listPreferredItemPaddingEnd"
        android:top="1dp">
        <shape android:shape="rectangle">
            <solid
                android:color="@color/settingslib_preference_bg_color" />
            <corners
                android:radius="?android:attr/dialogCornerRadius" />
        </shape>
    </item>
</layer-list>
 No newline at end of file
+33 −0
Original line number Diff line number Diff line
<?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.
  -->

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:left="?android:attr/listPreferredItemPaddingStart"
        android:right="?android:attr/listPreferredItemPaddingEnd"
        android:top="1dp">
        <shape android:shape="rectangle">
            <solid
                android:color="@color/settingslib_preference_bg_color" />
            <corners
                android:topLeftRadius="0dp"
                android:bottomLeftRadius="?android:attr/dialogCornerRadius"
                android:topRightRadius="0dp"
                android:bottomRightRadius="?android:attr/dialogCornerRadius" />
        </shape>
    </item>
</layer-list>
 No newline at end of file
+30 −0
Original line number Diff line number Diff line
<?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.
  -->

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:left="?android:attr/listPreferredItemPaddingStart"
        android:right="?android:attr/listPreferredItemPaddingEnd"
        android:top="1dp">
        <shape android:shape="rectangle">
            <solid
                android:color="@color/settingslib_preference_bg_color" />
            <corners
                android:radius="1dp" />
        </shape>
    </item>
</layer-list>
 No newline at end of file
+33 −0
Original line number Diff line number Diff line
<?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.
  -->

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:left="?android:attr/listPreferredItemPaddingStart"
        android:right="?android:attr/listPreferredItemPaddingEnd"
        android:top="1dp">
        <shape android:shape="rectangle">
            <solid
                android:color="@color/settingslib_preference_bg_color" />
            <corners
                android:topLeftRadius="?android:attr/dialogCornerRadius"
                android:bottomLeftRadius="0dp"
                android:topRightRadius="?android:attr/dialogCornerRadius"
                android:bottomRightRadius="0dp" />
        </shape>
    </item>
</layer-list>
 No newline at end of file