Skip to content

Commit 60d7f04

Browse files
committed
More colorful icons.
1 parent 31a580e commit 60d7f04

10 files changed

Lines changed: 154 additions & 47 deletions

File tree

0 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=23
2-
items=1050
1+
version=24
2+
items=1068

library/src/main/java/com/absinthe/rulesbundle/IconResMap.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,14 @@ object IconResMap {
108108
put(95, R.drawable.ic_lib_node_js)
109109
put(96, R.drawable.ic_lib_fresco)
110110
put(97, R.drawable.ic_lib_meituan)
111+
put(98, R.drawable.ic_lib_netease_shield)
111112
}
112113

113114
SINGLE_COLOR_ICON_SET = setOf(
114-
-1, 1, 2, 3, 4, 5, 6, 9, 10, 11, 13, 14, 15, 16, 17,
115-
25, 27, 30, 31, 40, 43, 44, 46, 47, 48, 50, 51,
116-
52, 53, 54, 56, 59, 63, 64, 66, 67, 69, 74, 76,
117-
81, 82, 83, 84, 86, 93, 97
115+
-1, 2, 3, 4, 5, 6, 9, 10, 11, 13, 14, 15, 16, 17,
116+
25, 27, 30, 31, 40, 43, 44, 46, 47, 48, 51, 53,
117+
54, 56, 59, 63, 64, 66, 74, 76, 81, 82, 83, 84,
118+
86, 93, 97
118119
)
119120
}
120121

library/src/main/java/com/absinthe/rulesbundle/RuleDatabase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class RuleDatabase : RoomDatabase() {
2828
RuleDatabase::class.java,
2929
"rules_database"
3030
).fallbackToDestructiveMigration()
31-
.createFromAsset("lcrules/rules.db")
31+
.createFromAsset(LCRules.getRulesAssetPath())
3232
.build()
3333
}
3434
}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="24dp"
3-
android:height="24dp"
4-
android:viewportWidth="1024"
5-
android:viewportHeight="1024"
6-
android:tint="?attr/colorControlNormal">
7-
<path
8-
android:fillColor="#000000"
9-
android:pathData="M512.64,128c-39.04,0 -75.2,17.15 -102.34,48.96 -11.65,14.34 -20.03,29.57 -27.36,42.91l-1.44,2.88c-5.22,10.46 -10.72,21.34 -16.99,33.31l-1.38,3.07a8606.98,8606.98 0,0 0,-163.84 341.18l-3.04,6.62c-2.08,4.48 -4.16,9.15 -5.95,13.31l-2.62,5.7c-1.92,4.22 -3.84,8.48 -5.44,12.29 -3.74,8.51 -7.52,17.38 -11.62,28.26 -10.02,29.66 -12.86,56.58 -8.99,85.06 8.64,58.78 47.62,109.28 101.76,131.84a164.1,164.1 0,0 0,63.68 12.61c4.9,0 12.19,-0.38 20.35,-1.5a204.22,204.22 0,0 0,76.96 -26.62c28.16,-15.87 55.81,-38.72 86.56,-71.55l1.25,1.66 0.48,-0.67c28.8,30.78 56.64,53.92 84.96,70.3 24.58,14.4 50.59,23.39 76.8,26.75a155.14,155.14 0,0 0,84.38 -11.3v0.06c53.57,-21.5 92.38,-70.98 101.7,-129.5l0.93,-5.25c5.06,-24.96 2.56,-51.52 -7.46,-80.96a90.24,90.24 0,0 0,-3.81 -9.41,312.13 312.13,0 0,0 -7.3,-17.76c-1.92,-4.74 -4,-9.18 -6.02,-13.5l-5.06,-11.42c-1.7,-3.84 -3.26,-7.65 -5.06,-11.39l-2.08,-4a8402.37,8402.37 0,0 0,-162.78 -339.07l-2.69,-5.38c-5.89,-10.88 -11.84,-22.72 -18.08,-35.49l-1.79,-3.52c-6.56,-11.84 -13.31,-24.03 -23.46,-36.16l-1.5,-1.92C589.02,145.82 552.9,128 512.64,128zM511.74,192.67a63.87,63.87 0,0 1,50.62 23.26l3.39,4.26c6.72,7.68 11.46,16.32 16.8,25.79l1.92,4.19c5.95,11.84 12.16,24.32 17.95,34.94l2.3,4.7c55.07,108.22 109.44,221.44 161.28,335.68l4.54,10.11 0.38,0.38 2.11,4.8 5.76,12.9c1.54,3.36 3.1,6.75 5.12,11.62 1.98,4.51 4.22,9.54 7.01,16.86 0.83,1.92 1.76,3.87 2.43,5.82l0.06,0.19c6.69,19.52 8.13,35.3 4.8,49.5l-0.8,4.74a104.61,104.61 0,0 1,-64.51 82.24,92.29 92.29,0 0,1 -49.86,6.27 140.58,140.58 0,0 1,-53.31 -18.62c-25.18,-14.59 -50.66,-36.48 -77.82,-66.75l2.05,-2.69c43.78,-57.15 71.17,-109.41 81.38,-155.26l0.06,-0.26c4.93,-22.72 5.89,-44.1 2.94,-63.04a126.05,126.05 0,0 0,-19.36 -52C596.77,437.06 556.8,416 512,416c-42.94,0 -82.56,20.42 -106.02,54.62l-1.73,2.94a125.44,125.44 0,0 0,-18.5 49.98,167.52 167.52,0 0,0 2.75,63.36c9.82,46.27 38.08,100.32 81.54,156.29l1.31,1.66 -0.03,0.06c-29.12,32.13 -53.98,53.44 -78.82,67.46a141.79,141.79 0,0 1,-53.63 18.69c-4.86,0.7 -9.02,0.93 -11.84,0.93 -13.86,0 -26.37,-2.46 -39.17,-7.74a105.28,105.28 0,0 1,-62.88 -81.7c-2.5,-18.21 -0.51,-35.3 5.95,-54.43 3.26,-8.7 6.59,-16.54 10.11,-24.51 1.6,-3.74 3.3,-7.42 4.93,-11.1l2.94,-6.62c1.79,-4.16 3.65,-8.22 5.5,-12.26l3.87,-8.64A8634.18,8634.18 0,0 1,420.8 286.94l1.09,-2.5c5.66,-10.78 11.36,-22.14 16.8,-33.02l0.8,-1.66c5.82,-10.56 12.42,-22.46 20,-31.81a70.14,70.14 0,0 1,52.26 -25.28zM512,480c22.69,0 42.4,9.86 52.93,26.75 5.47,8.45 8.77,16.96 10.08,26.69 1.82,11.62 1.06,25.57 -2.14,40.32 -7.55,33.82 -28.03,73.66 -61.06,118.69 -32.61,-44.06 -53.54,-84.93 -60.8,-119.14a106.11,106.11 0,0 1,-2.02 -40.58c1.28,-9.06 4.48,-17.54 9.92,-25.98l0.64,-1.06c11.62,-16.13 31.1,-25.7 52.45,-25.7z" />
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="1024"
5+
android:viewportHeight="1024">
6+
<path
7+
android:fillColor="#ff5a5f"
8+
android:pathData="M512.64,128c-39.04,0 -75.2,17.15 -102.34,48.96 -11.65,14.34 -20.03,29.57 -27.36,42.91l-1.44,2.88c-5.22,10.46 -10.72,21.34 -16.99,33.31l-1.38,3.07a8606.98,8606.98 0,0 0,-163.84 341.18l-3.04,6.62c-2.08,4.48 -4.16,9.15 -5.95,13.31l-2.62,5.7c-1.92,4.22 -3.84,8.48 -5.44,12.29 -3.74,8.51 -7.52,17.38 -11.62,28.26 -10.02,29.66 -12.86,56.58 -8.99,85.06 8.64,58.78 47.62,109.28 101.76,131.84a164.1,164.1 0,0 0,63.68 12.61c4.9,0 12.19,-0.38 20.35,-1.5a204.22,204.22 0,0 0,76.96 -26.62c28.16,-15.87 55.81,-38.72 86.56,-71.55l1.25,1.66 0.48,-0.67c28.8,30.78 56.64,53.92 84.96,70.3 24.58,14.4 50.59,23.39 76.8,26.75a155.14,155.14 0,0 0,84.38 -11.3v0.06c53.57,-21.5 92.38,-70.98 101.7,-129.5l0.93,-5.25c5.06,-24.96 2.56,-51.52 -7.46,-80.96a90.24,90.24 0,0 0,-3.81 -9.41,312.13 312.13,0 0,0 -7.3,-17.76c-1.92,-4.74 -4,-9.18 -6.02,-13.5l-5.06,-11.42c-1.7,-3.84 -3.26,-7.65 -5.06,-11.39l-2.08,-4a8402.37,8402.37 0,0 0,-162.78 -339.07l-2.69,-5.38c-5.89,-10.88 -11.84,-22.72 -18.08,-35.49l-1.79,-3.52c-6.56,-11.84 -13.31,-24.03 -23.46,-36.16l-1.5,-1.92C589.02,145.82 552.9,128 512.64,128zM511.74,192.67a63.87,63.87 0,0 1,50.62 23.26l3.39,4.26c6.72,7.68 11.46,16.32 16.8,25.79l1.92,4.19c5.95,11.84 12.16,24.32 17.95,34.94l2.3,4.7c55.07,108.22 109.44,221.44 161.28,335.68l4.54,10.11 0.38,0.38 2.11,4.8 5.76,12.9c1.54,3.36 3.1,6.75 5.12,11.62 1.98,4.51 4.22,9.54 7.01,16.86 0.83,1.92 1.76,3.87 2.43,5.82l0.06,0.19c6.69,19.52 8.13,35.3 4.8,49.5l-0.8,4.74a104.61,104.61 0,0 1,-64.51 82.24,92.29 92.29,0 0,1 -49.86,6.27 140.58,140.58 0,0 1,-53.31 -18.62c-25.18,-14.59 -50.66,-36.48 -77.82,-66.75l2.05,-2.69c43.78,-57.15 71.17,-109.41 81.38,-155.26l0.06,-0.26c4.93,-22.72 5.89,-44.1 2.94,-63.04a126.05,126.05 0,0 0,-19.36 -52C596.77,437.06 556.8,416 512,416c-42.94,0 -82.56,20.42 -106.02,54.62l-1.73,2.94a125.44,125.44 0,0 0,-18.5 49.98,167.52 167.52,0 0,0 2.75,63.36c9.82,46.27 38.08,100.32 81.54,156.29l1.31,1.66 -0.03,0.06c-29.12,32.13 -53.98,53.44 -78.82,67.46a141.79,141.79 0,0 1,-53.63 18.69c-4.86,0.7 -9.02,0.93 -11.84,0.93 -13.86,0 -26.37,-2.46 -39.17,-7.74a105.28,105.28 0,0 1,-62.88 -81.7c-2.5,-18.21 -0.51,-35.3 5.95,-54.43 3.26,-8.7 6.59,-16.54 10.11,-24.51 1.6,-3.74 3.3,-7.42 4.93,-11.1l2.94,-6.62c1.79,-4.16 3.65,-8.22 5.5,-12.26l3.87,-8.64A8634.18,8634.18 0,0 1,420.8 286.94l1.09,-2.5c5.66,-10.78 11.36,-22.14 16.8,-33.02l0.8,-1.66c5.82,-10.56 12.42,-22.46 20,-31.81a70.14,70.14 0,0 1,52.26 -25.28zM512,480c22.69,0 42.4,9.86 52.93,26.75 5.47,8.45 8.77,16.96 10.08,26.69 1.82,11.62 1.06,25.57 -2.14,40.32 -7.55,33.82 -28.03,73.66 -61.06,118.69 -32.61,-44.06 -53.54,-84.93 -60.8,-119.14a106.11,106.11 0,0 1,-2.02 -40.58c1.28,-9.06 4.48,-17.54 9.92,-25.98l0.64,-1.06c11.62,-16.13 31.1,-25.7 52.45,-25.7z" />
109
</vector>
Lines changed: 75 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,77 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="24dp"
3-
android:height="24dp"
4-
android:viewportWidth="1060"
5-
android:viewportHeight="1024"
6-
android:tint="?attr/colorControlNormal">
7-
<path
8-
android:fillColor="#000000"
9-
android:pathData="M443.42,159.93L270.56,361.54L270.56,446.85L527.32,152.83L938.88,118L335.58,752.61L415.15,757.2L853.3,305.66L853.3,734.27L804.29,780.33L928.78,787.68L928.78,906.47L540.15,873.56L737.59,681.47L737.59,586.16L455.75,866.43L122,838.18L659.3,253.57L570.15,258.84L182.14,689.3L182.14,323.56L218.65,279.61L128.9,284.92L128.9,186.55L443.42,159.93Z" />
2+
xmlns:aapt="http://schemas.android.com/aapt"
3+
android:width="24dp"
4+
android:height="24dp"
5+
android:viewportWidth="1024"
6+
android:viewportHeight="1024">
7+
<path
8+
android:fillColor="#0b4819"
9+
android:pathData="M157.01,313.5L157.01,227.76L214.57,247.59L214.57,327.36L157.01,313.5Z" />
10+
<path
11+
android:fillColor="#0b4819"
12+
android:pathData="M203.43,666L203.43,347.18L258.45,358.82L258.45,655.13L203.43,666Z" />
13+
<path
14+
android:fillColor="#105c80"
15+
android:pathData="M472.52,227.62L331.13,389.79L331.13,458.8L540.84,222.33L873,196.62L384.41,705.88L449.46,709.31L804.33,346.34L804.33,689.4L764.91,726.46L864.89,731.86L864.89,826.8L551.27,802.51L711.14,647.42L711.14,570.98L482.57,797.19L208.89,776.04L647.88,303.92L575.64,307.83L258.45,655.13L258.45,358.82L288.49,323.35L214.57,327.36L214.57,247.59L472.52,227.62Z" />
16+
<path
17+
android:fillColor="#0b4819"
18+
android:pathData="M203.43,347.18L235.25,308.88L288.49,323.35L258.45,358.82L203.43,347.18Z" />
19+
<path
20+
android:fillColor="#084010"
21+
android:pathData="M280.5,380.29L331.13,389.79L331.13,458.8L280.5,454.65L280.5,380.29Z" />
22+
<path
23+
android:fillColor="#0c541e"
24+
android:pathData="M337.18,721.18L384.41,705.88L449.46,709.31L406.54,725.18L337.18,721.18Z" />
25+
<path
26+
android:fillColor="#1a5c34"
27+
android:pathData="M431.18,204.55L472.52,227.62L331.13,389.79L280.5,380.29L431.18,204.55Z" />
28+
<path
29+
android:fillColor="#0b4819"
30+
android:pathData="M280.5,454.65L504.31,198.36L540.84,222.33L331.13,458.8L280.5,454.65Z" />
31+
<path
32+
android:fillColor="#1a5c34"
33+
android:pathData="M541.65,290.77L575.64,307.83L258.45,655.13L203.43,666L541.65,290.77Z" />
34+
<path
35+
android:fillColor="#0b4819"
36+
android:pathData="M151,795.77L619.36,286.18L647.88,303.92L208.89,776.04L151,795.77Z" />
37+
<path
38+
android:fillColor="#1a5c34"
39+
android:pathData="M687.6,576.09L711.14,570.98L482.57,797.19L441.93,820.4L687.6,576.09Z" />
40+
<path
41+
android:fillColor="#0b4819"
42+
android:pathData="M687.6,659.18L687.6,576.09L711.14,570.98L711.14,647.42L687.6,659.18Z" />
43+
<path
44+
android:fillColor="#0b4819"
45+
android:pathData="M515.5,826.62L687.6,659.18L711.14,647.42L551.27,802.51L515.5,826.62Z" />
46+
<path
47+
android:fillColor="#13802d"
48+
android:pathData="M788.47,705.2L745.75,745.34L764.91,726.46L804.33,689.4L788.47,705.2Z" />
49+
<path
50+
android:fillColor="#0b4819"
51+
android:pathData="M406.54,725.18L788.47,331.58L804.33,346.34L449.46,709.31L406.54,725.18Z" />
52+
<path
53+
android:fillColor="#084010"
54+
android:pathData="M788.47,331.58L804.33,346.34L804.33,689.4L788.47,705.2L788.47,331.58Z" />
55+
<path
56+
android:fillColor="#084010"
57+
android:pathData="M854.26,751.76L864.89,731.86L864.89,826.8L854.26,855.31L854.26,751.76Z" />
58+
<path
59+
android:fillColor="#1a5c34"
60+
android:pathData="M863.07,168L873,196.62L384.41,705.88L337.18,721.18L863.07,168Z" />
61+
<path android:pathData="M431.18,204.55L280.5,380.29L280.5,454.65L504.31,198.36L863.07,168L337.18,721.18L406.54,725.18L788.47,331.58L788.47,705.2L745.75,745.34L854.26,751.76L854.26,855.31L515.5,826.62L687.6,659.18L687.6,576.09L441.93,820.4L151,795.77L619.36,286.18L541.65,290.77L203.43,666L203.43,347.18L235.25,308.88L157.01,313.5L157.01,227.76L431.18,204.55Z">
62+
<aapt:attr name="android:fillColor">
63+
<gradient
64+
android:centerX="292.926"
65+
android:centerY="297.57"
66+
android:gradientRadius="348.108"
67+
android:type="radial">
68+
<item
69+
android:color="#FFFFFFFF"
70+
android:offset="0" />
71+
<item
72+
android:color="#FF007808"
73+
android:offset="1" />
74+
</gradient>
75+
</aapt:attr>
76+
</path>
1077
</vector>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="1024"
5+
android:viewportHeight="1024">
6+
<group>
7+
<clip-path android:pathData="M157,157h710v710h-710z" />
8+
<path
9+
android:fillColor="#2C6EFF"
10+
android:pathData="M157,512C157,606.2 194.4,696.4 261,763C327.6,829.6 417.8,867 512,867C606.2,867 696.4,829.6 763,763C829.6,696.4 867,606.2 867,512C867,417.8 829.6,327.6 763,261C696.4,194.4 606.2,157 512,157C417.8,157 327.6,194.4 261,261C194.4,327.6 157,417.8 157,512H157Z" />
11+
<path
12+
android:fillColor="#ffffff"
13+
android:pathData="M580.7,513.6C555.2,513.6 529.7,513 504.2,513.7C481.7,514.4 478,501.4 478.1,482.8C478.2,464.2 478.6,447.8 503.2,447.7C533.4,447.7 563.6,447.7 593.8,447.5C603,447.5 614.5,448.3 614,434.3C613.5,422.2 620.5,407.6 602.7,400.4C574.2,388.2 543.5,382 512.4,382C481.4,382 450.7,388.2 422.2,400.4C415.7,403.1 410.3,406.2 410.6,414.3C412.5,460.3 403.7,506.9 419.7,551.8C432.2,586.7 455.9,616.5 487.1,636.5C494.3,642.4 503.5,645.6 512.9,645.5C522.2,645.4 531.3,641.9 538.3,635.7C552.4,627.8 564.6,617.1 574.2,604.2C590.5,574.4 617.4,579.1 643.4,579.9C659.4,580.4 663.5,589.7 656.5,602.7C627.4,656.2 579.1,696.8 521.3,716.2C513,718.5 504.2,717.7 496.5,714C450.9,697.7 411.5,667.6 383.9,627.8C356.2,588.1 341.7,540.7 342.3,492.3C343.5,454.6 343.8,416.7 342,379.1C341.3,375.2 341.5,371.2 342.5,367.4C343.5,363.5 345.2,359.9 347.6,356.8C350,353.7 353.1,351 356.5,349.1C360,347.2 363.8,346 367.7,345.6C411.4,334.1 454.8,321.6 498.8,311.3C529.8,304.1 557.2,322.9 586.7,327.7C609.8,331.5 632.2,339.2 655.1,344.8C659.3,345.2 663.4,346.4 667.1,348.4C670.8,350.4 674.1,353.2 676.7,356.5C679.3,359.9 681.2,363.7 682.3,367.8C683.3,371.9 683.5,376.1 682.9,380.3C681.3,416.1 682.1,451.9 682.5,487.8C682.8,505.7 674.9,513.7 657,513.4C631.5,513.3 606.1,513.6 580.7,513.6V513.6Z" />
14+
</group>
15+
</vector>
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="24dp"
3-
android:height="24dp"
4-
android:viewportWidth="1024"
5-
android:viewportHeight="1024"
6-
android:tint="?attr/colorControlNormal">
7-
<path
8-
android:fillColor="#000000"
9-
android:pathData="M350.8,591.8c-7,38.4 -34.8,217.4 -43,268 -0.6,3.6 -2,5 -6,5H152.6c-15.2,0 -26.2,-13.2 -24.2,-27.8L245.6,93.2c3,-19.2 20.2,-33.8 40,-33.8 304.6,0 330.2,-7.4 408,22.8 120.2,46.6 131.2,159 88,280.6 -43,125.2 -145,179 -280.2,180.6 -86.8,1.4 -139,-14 -150.6,48.4zM842.2,304c-3.6,-2.6 -5,-3.6 -6,2.6 -4,22.8 -10.2,45 -17.6,67.2 -79.8,227.6 -301,207.8 -409,207.8 -12.2,0 -20.2,6.6 -21.8,18.8 -45.2,280.8 -54.2,339.4 -54.2,339.4 -2,14.2 7,25.8 21.2,25.8h127c17.2,0 31.4,-12.6 34.8,-29.8 1.4,-10.8 -2.2,12.2 28.8,-182.6 9.2,-44 28.6,-39.4 58.6,-39.4 142,0 252.8,-57.6 285.8,-224.6 13,-69.6 9.2,-142.8 -47.6,-185.2z" />
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="1024"
5+
android:viewportHeight="1024">
6+
<path
7+
android:fillColor="#009de2"
8+
android:pathData="M461.57,293.82L693.87,293.82C818.6,293.82 865.54,356.96 858.3,449.85C846.34,603 753.75,687.69 630.92,687.69L568.92,687.69C552.1,687.69 540.76,698.81 536.18,729.04L509.59,904.62C507.86,916.01 501.87,922.72 492.84,923.53L347.18,923.53C333.47,923.53 328.6,913.05 332.19,890.33L421.15,327.14C424.7,304.56 437.05,293.82 461.58,293.82L461.57,293.82Z" />
9+
<path
10+
android:fillColor="#113984"
11+
android:pathData="M316.35,100L548.9,100C614.4,100 692.07,102.13 744.04,147.95C778.75,178.56 796.95,227.34 792.76,279.72C778.45,457.24 672.25,556.72 529.85,556.72L415.16,556.72C395.63,556.72 382.7,569.63 377.19,604.67L345.19,808.25C343.13,821.46 337.39,829.25 326.94,830.18L183.69,830.18C167.81,830.18 162.16,818.03 166.31,791.7L269.46,138.64C273.58,112.46 287.91,100 316.35,100Z" />
12+
<path
13+
android:fillColor="#172c70"
14+
android:pathData="M380.53,584.15L421.15,327.14C424.7,304.56 437.05,293.82 461.58,293.82L693.87,293.82C732.32,293.82 763.39,299.83 787.74,310.89C764.4,468.91 662.2,556.72 528.34,556.72L413.7,556.72C398.6,556.72 387.33,564.44 380.55,584.15L380.53,584.15Z" />
1015
</vector>

0 commit comments

Comments
 (0)