6.6.2 - Alpha5 - 本地化 Color Picker 库; 主题色设置页面新旧布局分离 (初步)
This commit is contained in:
45
app/src/main/res/drawable/ic_color_palette_vector.xml
Normal file
45
app/src/main/res/drawable/ic_color_palette_vector.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="48dp"
|
||||
android:height="48dp"
|
||||
android:viewportWidth="512"
|
||||
android:viewportHeight="512">
|
||||
|
||||
<!-- 此处使用 group 对象进行整体缩放和平移,以预留边距;
|
||||
例如这里使用 0.78 的缩放,左右上下各会有 (512 - 512 * 0.78) / 2 = 56.32 的边距 -->
|
||||
<group
|
||||
android:scaleX="0.78"
|
||||
android:scaleY="0.78"
|
||||
android:translateX="56.32"
|
||||
android:translateY="56.32">
|
||||
|
||||
<!-- 第一个路径 -->
|
||||
<path
|
||||
android:fillColor="#231F20"
|
||||
android:pathData="M449.3,79.9C397.7,28.7,327.8,0.5,255.1,1.5C114.6,1.2,0.4,114.8,0,255.4c-0.3,140.5,113.3,254.8,253.8,255.1c29.9,0.5,56.4-19.3,64.4-48.1c5-20.5-0.4-42.3-14.5-58c-4.6-5.3-4.1-13.3,1.2-18c2.3-2,5.2-3.1,8.3-3.2h42c82,0.4,150.4-62.6,156.8-144.3C513.8,179.6,491.1,122,449.3,79.9z M356.1,332.4h-42c-35-0.2-63.5,28-63.7,63c-0.1,15.7,5.7,30.9,16.1,42.6c3.2,3.3,4.4,8.1,3.1,12.5c-1.3,5.3-7.1,8.6-15,9.2c-112.4-1.4-202.4-93.8-201-206.2c0.1-8.6,0.8-17.1,2-25.6c15-99.3,99.4-173.4,199.8-175.3h2c58.1-0.8,114.1,22,155.2,63.1c32.1,32.1,49.6,76,48.3,121.4C455.5,290.8,410.3,332,356.1,332.4z" />
|
||||
|
||||
<!-- 圆:使用路径数据来绘制圆形 -->
|
||||
<path
|
||||
android:fillColor="#231F20"
|
||||
android:pathData="M257.4,116
|
||||
m-38.2,0
|
||||
a38.2,38.2 0 1,0 76.4,0
|
||||
a38.2,38.2 0 1,0 -76.4,0" />
|
||||
|
||||
<!-- 第二个路径 -->
|
||||
<path
|
||||
android:fillColor="#231F20"
|
||||
android:pathData="M340.1,133.9c-18.3,10.5-24.5,33.9-14,52.1c10.5,18.3,33.9,24.5,52.2,14c18.2-10.5,24.5-33.9,14-52.1C381.8,129.6,358.4,123.3,340.1,133.9z" />
|
||||
|
||||
<!-- 第三个路径 -->
|
||||
<path
|
||||
android:fillColor="#231F20"
|
||||
android:pathData="M174.7,133.9c-18.3-10.5-41.6-4.2-52.1,14s-4.2,41.6,14,52.1c18.2,10.5,41.6,4.3,52.1-14C199.2,167.8,193,144.4,174.7,133.9z" />
|
||||
|
||||
<!-- 第四个路径 -->
|
||||
<path
|
||||
android:fillColor="#231F20"
|
||||
android:pathData="M108.8,237.2c-17.5,11.8-22.1,35.5-10.3,53c11.8,17.5,35.5,22.1,53,10.3c17.5-11.8,22.1-35.5,10.3-53l-0.1-0.1c-11.7-17.4-35.2-22.1-52.6-10.4" />
|
||||
|
||||
</group>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user