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

Commit 1dca68ae authored by Wenbo Jie's avatar Wenbo Jie
Browse files

[DocsUI M3] Dupliate drawable resources for M3 eanbled

res/drawable* folders includes some colors which we need to
update for M3 uplfit. This CL duplicates the res/drawable and
res/drawable-ldrtl into
res/flag(com.android.documentsui.flags.use_material3) folder.

Bug: 377771271
Test: build, deploy DocsUI and start it on DUT with flag on/off
Flag: com.android.documentsui.flags.use_material3
Change-Id: Iee992ef8d2b14df0035c3f592366b609a9ed977d
parent f96979b4
Loading
Loading
Loading
Loading
+26 −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.
-->

<inset xmlns:android="http://schemas.android.com/apk/res/android"
       android:insetTop="-1dp"
       android:insetBottom="-1dp"
       android:insetRight="-1dp">
    <shape android:shape="rectangle">
        <stroke
            android:width="1dp"
            android:color="?android:strokeColor"/>
    </shape>
</inset>
 No newline at end of file
+22 −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
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle">
    <solid android:color="@color/band_select_background" />
    <stroke android:width="1dp" android:color="@color/band_select_border" />
</shape>
+25 −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.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">

    <solid android:color="?android:attr/colorBackground" />

    <corners android:topLeftRadius="@dimen/grid_item_radius"
             android:topRightRadius="@dimen/grid_item_radius"
             android:bottomLeftRadius="0dp"
             android:bottomRightRadius="0dp"/>

</shape>
+42 −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.
-->

<ripple
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:color="?attr/colorControlHighlight">
    <item
        android:id="@android:id/mask"
        android:drawable="@android:color/white"/>

    <item>
        <selector>
            <item
                app:state_highlighted="true"
                android:drawable="@color/item_breadcrumb_background_hovered"/>
            <item
                app:state_highlighted="false"
                android:drawable="@android:color/transparent">
                <corners
                    android:topLeftRadius="2dp"
                    android:topRightRadius="2dp"
                    android:bottomLeftRadius="2dp"
                    android:bottomRightRadius="2dp"
                />
            </item>
        </selector>
    </item>
</ripple>
 No newline at end of file
+21 −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.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="oval">
    <solid
        android:color="#66000000"/>
</shape>
 No newline at end of file
Loading