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

Commit 8270362f authored by Catherine Liang's avatar Catherine Liang
Browse files

Color Picker Section (1/3)

New color picker section with entry point to color fragment. Refactoring & adding tests will be done in a separate CL.

Bug: 262924584
Test: https://drive.google.com/file/d/1ZS8g3h4jfK2BPprhdSSrqRtn-hF5NFX3/view?usp=sharing&resourcekey=0-HAckwp7sa5doqq2XYgVEsw
Change-Id: I0f77df1081e2cdb9f1f39331657a0615375d1889
parent 8876d7cd
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
<?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.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:height="@dimen/component_color_selected_small_diameter_default"
        android:width="@dimen/component_color_selected_small_diameter_default"
        android:gravity="center">
        <shape
            android:shape="ring"
            android:innerRadius="@dimen/component_color_overflow_small_radius_default"
            android:thickness="2dp"
            android:useLevel="false">
            <solid android:color="@color/text_color_primary"/>
        </shape>
    </item>
    <item
        android:height="@dimen/component_color_selected_small_diameter_default"
        android:width="@dimen/component_color_selected_small_diameter_default"
        android:gravity="center">
        <shape
            android:shape="ring"
            android:innerRadius="@dimen/component_color_overflow_small_radius_default"
            android:thickness="-3dp"
            android:useLevel="false">
            <solid android:color="@color/color_surface"/>
        </shape>
    </item>
</layer-list>
 No newline at end of file
+34 −0
Original line number Diff line number Diff line
<?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.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:height="@dimen/component_color_overflow_small_diameter_default"
        android:width="@dimen/component_color_overflow_small_diameter_default"
        android:gravity="center">
        <shape
            android:shape="ring"
            android:innerRadius="@dimen/component_color_overflow_small_radius_default"
            android:thickness="-1dp"
            android:useLevel="false">
            <solid android:color="@color/color_surface_variant"/>
        </shape>
    </item>
    <item
        android:drawable="@drawable/ic_more_horiz"
        android:gravity="center"/>
</layer-list>
 No newline at end of file
+29 −0
Original line number Diff line number Diff line
<?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.
  ~
  -->

<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

    <solid android:color="@color/color_surface" />

    <corners
        android:topLeftRadius="32dp"
        android:topRightRadius="32dp"
        android:bottomLeftRadius="8dp"
        android:bottomRightRadius="8dp" />
</shape>
 No newline at end of file
+25 −0
Original line number Diff line number Diff line
<!--
     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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:tint="?attr/colorControlNormal"
    android:viewportHeight="24"
    android:viewportWidth="24">
    <path
        android:fillColor="@color/text_color_primary"
        android:pathData="M6,14Q5.175,14 4.588,13.412Q4,12.825 4,12Q4,11.175 4.588,10.587Q5.175,10 6,10Q6.825,10 7.412,10.587Q8,11.175 8,12Q8,12.825 7.412,13.412Q6.825,14 6,14ZM12,14Q11.175,14 10.588,13.412Q10,12.825 10,12Q10,11.175 10.588,10.587Q11.175,10 12,10Q12.825,10 13.413,10.587Q14,11.175 14,12Q14,12.825 13.413,13.412Q12.825,14 12,14ZM18,14Q17.175,14 16.587,13.412Q16,12.825 16,12Q16,11.175 16.587,10.587Q17.175,10 18,10Q18.825,10 19.413,10.587Q20,11.175 20,12Q20,12.825 19.413,13.412Q18.825,14 18,14Z"/>
</vector>
 No newline at end of file
Loading