Skip to content

Commit a20343c

Browse files
committed
Color Pallet: Add new icon for theme selection tab
1 parent d78bd8a commit a20343c

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

kv-color-pallet/src/main/kotlin/com/kavi/droid/color/pallet/util/ColorUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object ColorUtil {
7676
shortestDistance = colorMatch300.colorDistance
7777
closestColor = colorMatch300.matchedColor
7878

79-
// Do comparison with 300 color list
79+
// Do comparison with 200 color list
8080
val colorMatch200 = Mat200Package.compareColor(givenColor)
8181

8282
if (colorMatch200.isExactMatch) {

ui-app/src/main/kotlin/com/kavi/droid/color/pallet/app/ui/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fun TabViewExample() {
4949
name = "Color Pallet",
5050
icon = R.drawable.icon_color_grid
5151
),
52-
TabItem(name = "Theme Gen", icon = R.drawable.icon_theme_set)
52+
TabItem(name = "Theme Gen", icon = R.drawable.icon_theme_masks)
5353
)
5454
var selectedTabIndex by remember { mutableStateOf(0) }
5555

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="64dp"
3+
android:height="64dp"
4+
android:viewportWidth="64"
5+
android:viewportHeight="64">
6+
<path
7+
android:fillColor="#FF000000"
8+
android:pathData="M63.606,11.913c-0.14,-0.52 -0.49,-0.93 -0.97,-1.15c-0.48,-0.21 -1.03,-0.19 -1.51,0.06c-5.915,3.15 -12.408,4.899 -19.05,4.61c-0.06,-0.71 -0.17,-1.35 -0.32,-1.91c-0.271,-1.061 -1.457,-1.618 -2.47,-1.09c-1.46,0.78 -2.93,1.46 -4.4,2.03c-3.38,-0.78 -6.81,-2.02 -10.28,-3.71c-0.947,-0.443 -2.095,0.026 -2.4,1.07c-0.37,1.31 -0.45,3.11 -0.28,5.24c-6.17,0.08 -12.61,-1.5 -19.17,-4.69c-0.46,-0.23 -1,-0.23 -1.46,-0.02c-0.46,0.21 -0.8,0.61 -0.93,1.08c-1.74,6.21 2.94,23.79 10.12,33.25c3.39,4.47 6.94,6.73 10.63,6.73c0.01,0 0.01,0 0.01,0c4.09,-0.3 8.08,-3.01 11.58,-7.88c3.26,4.16 6.7,6.27 10.26,6.27c4.41,-0.32 8.69,-3.45 12.38,-9.04C61.321,33.752 65.299,18.286 63.606,11.913zM47.006,39.853c-2,-2 -5.13,-2.26 -7.43,-0.62l-1.16,-1.63c3.1,-2.21 7.31,-1.86 10,0.84L47.006,39.853zM47.276,27.003l-1.41,-1.41c2.77,-2.78 7.28,-2.78 10.06,0l-1.42,1.41C52.516,25.013 49.276,25.013 47.276,27.003zM21.056,51.413c-3.69,0 -6.92,-3.23 -8.98,-5.94c-7.08,-9.34 -11.05,-25.66 -9.87,-31.15c6.8,3.26 13.5,4.85 19.94,4.74c5.847,0 12.484,-1.891 17.76,-4.69c1.347,6.286 -2.951,21.984 -8.46,29.46C29.106,47.243 25.496,51.093 21.056,51.413z"/>
9+
<path
10+
android:fillColor="#FF000000"
11+
android:pathData="M18.084,27.218c-1.34,-1.339 -3.125,-2.081 -5.036,-2.089c-1.902,0.008 -3.688,0.75 -5.027,2.089l1.414,1.414c0.964,-0.963 2.25,-1.497 3.613,-1.503c1.371,0.005 2.657,0.54 3.621,1.503L18.084,27.218z"/>
12+
<path
13+
android:fillColor="#FF000000"
14+
android:pathData="M34.079,27.218c-2.774,-2.774 -7.288,-2.774 -10.063,0l1.414,1.414c1.995,-1.994 5.239,-1.994 7.234,0L34.079,27.218z"/>
15+
<path
16+
android:fillColor="#FF000000"
17+
android:pathData="M20.254,41.759c-1.499,-0.138 -2.97,-1.355 -4.373,-3.62l-1.7,1.054c1.776,2.866 3.702,4.356 5.89,4.558c0.166,0.015 0.331,0.022 0.498,0.022c2.248,0 4.607,-1.389 7.191,-4.231l-1.479,-1.346C23.989,40.716 21.965,41.914 20.254,41.759z"/>
18+
</vector>

0 commit comments

Comments
 (0)