Skip to content

Commit 608f91f

Browse files
committed
Update Theme support
1 parent b248790 commit 608f91f

File tree

9 files changed

+206
-50
lines changed

9 files changed

+206
-50
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:aapt="http://schemas.android.com/aapt"
3+
android:width="24dp"
4+
android:height="24dp"
5+
android:viewportHeight="50.8"
6+
android:viewportWidth="50.8">
7+
<path
8+
android:fillAlpha=".98913"
9+
android:fillColor="@color/brown"
10+
android:pathData="M0,0.02h50.92v50.92h-50.92z"
11+
android:strokeAlpha=".91803"
12+
android:strokeColor="#00000000"
13+
android:strokeWidth="0.265" />
14+
<path
15+
android:fillAlpha=".99454"
16+
android:fillColor="#e6e6e6"
17+
android:pathData="M21.09,28.97h7.57v18.22h-7.57z"
18+
android:strokeAlpha=".44809"
19+
android:strokeColor="#fff"
20+
android:strokeWidth=".22406" />
21+
<path
22+
android:fillAlpha=".99454"
23+
android:fillColor="#e6e6e6"
24+
android:pathData="m13.88,30.42 l21.68,0.14 -9.95,-11.98z"
25+
android:strokeAlpha=".054645"
26+
android:strokeColor="#000"
27+
android:strokeWidth=".25895" />
28+
<path
29+
android:fillAlpha=".99454"
30+
android:fillColor="#e6e6e6"
31+
android:pathData="m14.31,22.08 l21.05,0.06 -9.92,-11.74z"
32+
android:strokeAlpha=".071038"
33+
android:strokeColor="#000"
34+
android:strokeWidth=".22699" />
35+
<path
36+
android:fillAlpha=".99454"
37+
android:fillColor="#9fa8da"
38+
android:pathData="M19.54,19.56m-0.84,0a0.84,0.84 0,1 1,1.67 0a0.84,0.84 0,1 1,-1.67 0"
39+
android:strokeAlpha=".071038"
40+
android:strokeColor="#000"
41+
android:strokeWidth="0.265" />
42+
<path
43+
android:fillAlpha=".99454"
44+
android:fillColor="#90caf9"
45+
android:pathData="M30.9,27.98m-1.1,0a1.1,1.1 0,1 1,2.2 0a1.1,1.1 0,1 1,-2.2 0"
46+
android:strokeAlpha=".071038"
47+
android:strokeColor="#000"
48+
android:strokeWidth="0.265" />
49+
<path
50+
android:fillAlpha=".73770"
51+
android:fillColor="#a5d6a7"
52+
android:pathData="M16.97,29.02m-0.53,0a0.53,0.53 0,1 1,1.07 0a0.53,0.53 0,1 1,-1.07 0"
53+
android:strokeAlpha=".071038"
54+
android:strokeColor="#000"
55+
android:strokeWidth="0.265" />
56+
<path
57+
android:fillAlpha=".73770"
58+
android:fillColor="#ce93d8"
59+
android:pathData="M27.93,15.65m-0.47,0a0.47,0.47 0,1 1,0.94 0a0.47,0.47 0,1 1,-0.94 0"
60+
android:strokeAlpha=".071038"
61+
android:strokeColor="#000"
62+
android:strokeWidth="0.265" />
63+
<path
64+
android:fillColor="#e6e6e6"
65+
android:pathData="m-0.02,42.82c0,0 21.9,-0.89 28.55,6.44 6.68,3.04 -12.77,1.61 -16.67,1.67L-0,50.93Z"
66+
android:strokeAlpha="0.06010898"
67+
android:strokeColor="#000"
68+
android:strokeWidth="0.26458001" />
69+
<path
70+
android:fillColor="#ececec"
71+
android:pathData="m50.95,43.12c-0.91,-6.29 -30.2,1.17 -26.46,7.76 7.96,0.66 27.63,-0.18 26.47,0.17z"
72+
android:strokeAlpha="0.04371601"
73+
android:strokeColor="#000000"
74+
android:strokeWidth="0.26458001" />
75+
<path android:pathData="m21.09,47.19 l-0.33,-16.68 7.91,16.68z">
76+
<aapt:attr name="android:fillColor">
77+
<gradient
78+
android:endX="2946.624"
79+
android:endY="8970.815999999999"
80+
android:startX="1432.7424"
81+
android:startY="5720.64"
82+
android:type="linear" />
83+
</aapt:attr>
84+
</path>
85+
<path android:pathData="m35.56,30.56 l8.87,15.29 -15.77,1.34 0,-16.64z">
86+
<aapt:attr name="android:fillColor">
87+
<gradient
88+
android:endX="6645.312"
89+
android:endY="8618.112000000001"
90+
android:startX="3668.9280000000003"
91+
android:startY="4666.752"
92+
android:type="linear" />
93+
</aapt:attr>
94+
</path>
95+
<path
96+
android:fillColor="#ffea00"
97+
android:pathData="m26.94,12.6 l-1.64,-0.73 -1.62,0.76 0.19,-1.78 -1.23,-1.31 1.75,-0.37 0.87,-1.57 0.89,1.55 1.76,0.34 -1.2,1.33z" />
98+
</vector>
Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,4 @@
1-
<vector android:height="24dp" android:viewportHeight="50.8"
2-
android:viewportWidth="50.8" android:width="24dp"
3-
xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
4-
<path android:fillAlpha=".98913" android:fillColor="#d38d5f"
5-
android:pathData="M0,0.02h50.92v50.92h-50.92z"
6-
android:strokeAlpha=".91803" android:strokeColor="#00000000" android:strokeWidth="0.265"/>
7-
<path android:fillAlpha=".99454" android:fillColor="#e6e6e6"
8-
android:pathData="M21.09,28.97h7.57v18.22h-7.57z"
9-
android:strokeAlpha=".44809" android:strokeColor="#fff" android:strokeWidth=".22406"/>
10-
<path android:fillAlpha=".99454" android:fillColor="#e6e6e6"
11-
android:pathData="m13.88,30.42 l21.68,0.14 -9.95,-11.98z"
12-
android:strokeAlpha=".054645" android:strokeColor="#000" android:strokeWidth=".25895"/>
13-
<path android:fillAlpha=".99454" android:fillColor="#e6e6e6"
14-
android:pathData="m14.31,22.08 l21.05,0.06 -9.92,-11.74z"
15-
android:strokeAlpha=".071038" android:strokeColor="#000" android:strokeWidth=".22699"/>
16-
<path android:fillAlpha=".99454" android:fillColor="#94a3e6"
17-
android:pathData="M19.54,19.56m-0.84,0a0.84,0.84 0,1 1,1.67 0a0.84,0.84 0,1 1,-1.67 0"
18-
android:strokeAlpha=".071038" android:strokeColor="#000" android:strokeWidth="0.265"/>
19-
<path android:fillAlpha=".99454" android:fillColor="#94cee6"
20-
android:pathData="M30.9,27.98m-1.1,0a1.1,1.1 0,1 1,2.2 0a1.1,1.1 0,1 1,-2.2 0"
21-
android:strokeAlpha=".071038" android:strokeColor="#000" android:strokeWidth="0.265"/>
22-
<path android:fillAlpha=".73770" android:fillColor="#94ceb2"
23-
android:pathData="M16.97,29.02m-0.53,0a0.53,0.53 0,1 1,1.07 0a0.53,0.53 0,1 1,-1.07 0"
24-
android:strokeAlpha=".071038" android:strokeColor="#000" android:strokeWidth="0.265"/>
25-
<path android:fillAlpha=".73770" android:fillColor="#db98ca"
26-
android:pathData="M27.93,15.65m-0.47,0a0.47,0.47 0,1 1,0.94 0a0.47,0.47 0,1 1,-0.94 0"
27-
android:strokeAlpha=".071038" android:strokeColor="#000" android:strokeWidth="0.265"/>
28-
<path android:fillColor="#e6e6e6"
29-
android:pathData="m-0.02,42.82c0,0 21.9,-0.89 28.55,6.44 6.68,3.04 -12.77,1.61 -16.67,1.67L-0,50.93Z"
30-
android:strokeAlpha="0.06010898" android:strokeColor="#000" android:strokeWidth="0.26458001"/>
31-
<path android:fillColor="#ececec"
32-
android:pathData="m50.95,43.12c-0.91,-6.29 -30.2,1.17 -26.46,7.76 7.96,0.66 27.63,-0.18 26.47,0.17z"
33-
android:strokeAlpha="0.04371601" android:strokeColor="#000000" android:strokeWidth="0.26458001"/>
34-
<path android:pathData="m21.09,47.19 l-0.33,-16.68 7.91,16.68z">
35-
<aapt:attr name="android:fillColor">
36-
<gradient android:endX="2946.624"
37-
android:endY="8970.815999999999"
38-
android:startX="1432.7424" android:startY="5720.64" android:type="linear"/>
39-
</aapt:attr>
40-
</path>
41-
<path android:pathData="m35.56,30.56 l8.87,15.29 -15.77,1.34 0,-16.64z">
42-
<aapt:attr name="android:fillColor">
43-
<gradient android:endX="6645.312"
44-
android:endY="8618.112000000001"
45-
android:startX="3668.9280000000003"
46-
android:startY="4666.752" android:type="linear"/>
47-
</aapt:attr>
48-
</path>
49-
<path android:fillAlpha=".96196" android:fillColor="#e1e220" android:pathData="m26.94,12.6 l-1.64,-0.73 -1.62,0.76 0.19,-1.78 -1.23,-1.31 1.75,-0.37 0.87,-1.57 0.89,1.55 1.76,0.34 -1.2,1.33z"/>
50-
</vector>
1+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:antialias="true"
3+
android:src="@android:drawable/ic_menu_gallery"
4+
android:tint="@color/brown" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="red">#b71c1c</color>
4+
<color name="pink">#880e4f</color>
5+
<color name="purple">#4a148c</color>
6+
<color name="deep_purple">#4a148c</color>
7+
<color name="indigo">#1a237e</color>
8+
<color name="blue">#0d47a1</color>
9+
<color name="light_blue">#01579b</color>
10+
<color name="cyan">#006064</color>
11+
<color name="teal">#004d40</color>
12+
<color name="green">#1b5e20</color>
13+
<color name="light_green">#33691e</color>
14+
<color name="lime">#827717</color>
15+
<color name="yellow">#f57f17</color>
16+
<color name="amber">#ffab00</color>
17+
<color name="orange">#e65100</color>
18+
<color name="deep_orange">#bf360c</color>
19+
<color name="brown">#4e342e</color>
20+
<color name="grey">#9E9E9E</color>
21+
<color name="blue_grey">#455a64</color>
22+
23+
<!-- extra -->
24+
<color name="black">@android:color/black</color>
25+
<color name="white">@android:color/white</color>
26+
<color name="transparent">@android:color/transparent</color>
27+
28+
<!-- easter egg -->
29+
<color name="TianYiblue">#66ccff</color>
30+
<color name="YueZhengLingred">#ee0000</color>
31+
</resources>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<style name="ThemeDark" parent="android:Theme.Material">
5+
6+
</style>
7+
</resources>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<style name="ThemeLight" parent="android:Theme.Material.Light">
5+
6+
</style>
7+
</resources>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources></resources>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<style name="ThemeLight" parent="android:Theme.Holo.Light">
5+
6+
</style>
7+
</resources>

app/src/main/res/values/colors.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="red">#f44336</color>
4+
<color name="pink">#E91E63</color>
5+
<color name="purple">#9c27b0</color>
6+
<color name="deep_purple">#673AB7</color>
7+
<color name="indigo">#3F51B5</color>
8+
<color name="blue">#2196F3</color>
9+
<color name="light_blue">#03A9F4</color>
10+
<color name="cyan">#00BCD4</color>
11+
<color name="teal">#009688</color>
12+
<color name="green">#4CAF50</color>
13+
<color name="light_green">#8BC34A</color>
14+
<color name="lime">#CDDC39</color>
15+
<color name="yellow">#FFEB3B</color>
16+
<color name="amber">#FFC107</color>
17+
<color name="orange">#FF9800</color>
18+
<color name="deep_orange">#FF5722</color>
19+
<color name="brown">#795548</color>
20+
<color name="grey">#9E9E9E</color>
21+
<color name="blue_grey">#607D8B</color>
22+
23+
<!-- extra -->
24+
<color name="black">@android:color/black</color>
25+
<color name="white">@android:color/white</color>
26+
<color name="transparent">@android:color/transparent</color>
27+
28+
<!-- easter egg -->
29+
<color name="TianYiblue">#66ccff</color>
30+
<color name="YueZhengLingred">#ee0000</color>
31+
</resources>

doc/COLORS

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
red #F44336
2+
pink #E91E63
3+
purple #9C27B0
4+
deep-purple #673AB7
5+
indigo #3F51B5
6+
blue #2196F3
7+
light-blue #03A9F4
8+
cyan #00BCD4
9+
teal #009688
10+
green #4CAF50
11+
light-green #8BC34A
12+
lime #CDDC39
13+
yellow #FFEB3B
14+
amber #FFC107
15+
orange #FF9800
16+
deep-orange #FF5722
17+
brown #795548
18+
grey #9E9E9E
19+
blue-grey #607D8B

0 commit comments

Comments
 (0)