Skip to content

Commit 26c6215

Browse files
committed
adding colored launcher icons
1 parent f5a433f commit 26c6215

File tree

122 files changed

+358
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+358
-3
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,252 @@
9797
<action android:name="android.service.quicksettings.action.QS_TILE"/>
9898
</intent-filter>
9999
</service>
100+
101+
<!-- Do not append ".Orange" to the default alias "name", it would remove the old homescreen launcher of users at upgrade -->
102+
<activity-alias
103+
android:name=".activities.SplashActivity"
104+
android:enabled="true"
105+
android:icon="@mipmap/ic_launcher"
106+
android:roundIcon="@mipmap/ic_launcher"
107+
android:targetActivity=".activities.SplashActivity">
108+
<intent-filter>
109+
<action android:name="android.intent.action.MAIN"/>
110+
<category android:name="android.intent.category.LAUNCHER"/>
111+
</intent-filter>
112+
</activity-alias>
113+
114+
<activity-alias
115+
android:name=".activities.SplashActivity.Red"
116+
android:enabled="false"
117+
android:icon="@mipmap/ic_launcher_red"
118+
android:roundIcon="@mipmap/ic_launcher_red"
119+
android:targetActivity=".activities.SplashActivity">
120+
121+
<intent-filter>
122+
<action android:name="android.intent.action.MAIN"/>
123+
<category android:name="android.intent.category.LAUNCHER"/>
124+
</intent-filter>
125+
</activity-alias>
126+
127+
<activity-alias
128+
android:name=".activities.SplashActivity.Pink"
129+
android:enabled="false"
130+
android:icon="@mipmap/ic_launcher_pink"
131+
android:roundIcon="@mipmap/ic_launcher_pink"
132+
android:targetActivity=".activities.SplashActivity">
133+
134+
<intent-filter>
135+
<action android:name="android.intent.action.MAIN"/>
136+
<category android:name="android.intent.category.LAUNCHER"/>
137+
</intent-filter>
138+
</activity-alias>
139+
140+
<activity-alias
141+
android:name=".activities.SplashActivity.Purple"
142+
android:enabled="false"
143+
android:icon="@mipmap/ic_launcher_purple"
144+
android:roundIcon="@mipmap/ic_launcher_purple"
145+
android:targetActivity=".activities.SplashActivity">
146+
147+
<intent-filter>
148+
<action android:name="android.intent.action.MAIN"/>
149+
<category android:name="android.intent.category.LAUNCHER"/>
150+
</intent-filter>
151+
</activity-alias>
152+
153+
<activity-alias
154+
android:name=".activities.SplashActivity.Deep_purple"
155+
android:enabled="false"
156+
android:icon="@mipmap/ic_launcher_deep_purple"
157+
android:roundIcon="@mipmap/ic_launcher_deep_purple"
158+
android:targetActivity=".activities.SplashActivity">
159+
160+
<intent-filter>
161+
<action android:name="android.intent.action.MAIN"/>
162+
<category android:name="android.intent.category.LAUNCHER"/>
163+
</intent-filter>
164+
</activity-alias>
165+
166+
<activity-alias
167+
android:name=".activities.SplashActivity.Indigo"
168+
android:enabled="false"
169+
android:icon="@mipmap/ic_launcher_indigo"
170+
android:roundIcon="@mipmap/ic_launcher_indigo"
171+
android:targetActivity=".activities.SplashActivity">
172+
173+
<intent-filter>
174+
<action android:name="android.intent.action.MAIN"/>
175+
<category android:name="android.intent.category.LAUNCHER"/>
176+
</intent-filter>
177+
</activity-alias>
178+
179+
<activity-alias
180+
android:name=".activities.SplashActivity.Blue"
181+
android:enabled="false"
182+
android:icon="@mipmap/ic_launcher_blue"
183+
android:roundIcon="@mipmap/ic_launcher_blue"
184+
android:targetActivity=".activities.SplashActivity">
185+
186+
<intent-filter>
187+
<action android:name="android.intent.action.MAIN"/>
188+
<category android:name="android.intent.category.LAUNCHER"/>
189+
</intent-filter>
190+
</activity-alias>
191+
192+
<activity-alias
193+
android:name=".activities.SplashActivity.Light_blue"
194+
android:enabled="false"
195+
android:icon="@mipmap/ic_launcher_light_blue"
196+
android:roundIcon="@mipmap/ic_launcher_light_blue"
197+
android:targetActivity=".activities.SplashActivity">
198+
199+
<intent-filter>
200+
<action android:name="android.intent.action.MAIN"/>
201+
<category android:name="android.intent.category.LAUNCHER"/>
202+
</intent-filter>
203+
</activity-alias>
204+
205+
<activity-alias
206+
android:name=".activities.SplashActivity.Cyan"
207+
android:enabled="false"
208+
android:icon="@mipmap/ic_launcher_cyan"
209+
android:roundIcon="@mipmap/ic_launcher_cyan"
210+
android:targetActivity=".activities.SplashActivity">
211+
212+
<intent-filter>
213+
<action android:name="android.intent.action.MAIN"/>
214+
<category android:name="android.intent.category.LAUNCHER"/>
215+
</intent-filter>
216+
</activity-alias>
217+
218+
<activity-alias
219+
android:name=".activities.SplashActivity.Teal"
220+
android:enabled="false"
221+
android:icon="@mipmap/ic_launcher_teal"
222+
android:roundIcon="@mipmap/ic_launcher_teal"
223+
android:targetActivity=".activities.SplashActivity">
224+
225+
<intent-filter>
226+
<action android:name="android.intent.action.MAIN"/>
227+
<category android:name="android.intent.category.LAUNCHER"/>
228+
</intent-filter>
229+
</activity-alias>
230+
231+
<activity-alias
232+
android:name=".activities.SplashActivity.Green"
233+
android:enabled="false"
234+
android:icon="@mipmap/ic_launcher_green"
235+
android:roundIcon="@mipmap/ic_launcher_green"
236+
android:targetActivity=".activities.SplashActivity">
237+
238+
<intent-filter>
239+
<action android:name="android.intent.action.MAIN"/>
240+
<category android:name="android.intent.category.LAUNCHER"/>
241+
</intent-filter>
242+
</activity-alias>
243+
244+
<activity-alias
245+
android:name=".activities.SplashActivity.Light_green"
246+
android:enabled="false"
247+
android:icon="@mipmap/ic_launcher_light_green"
248+
android:roundIcon="@mipmap/ic_launcher_light_green"
249+
android:targetActivity=".activities.SplashActivity">
250+
251+
<intent-filter>
252+
<action android:name="android.intent.action.MAIN"/>
253+
<category android:name="android.intent.category.LAUNCHER"/>
254+
</intent-filter>
255+
</activity-alias>
256+
257+
<activity-alias
258+
android:name=".activities.SplashActivity.Lime"
259+
android:enabled="false"
260+
android:icon="@mipmap/ic_launcher_lime"
261+
android:roundIcon="@mipmap/ic_launcher_lime"
262+
android:targetActivity=".activities.SplashActivity">
263+
264+
<intent-filter>
265+
<action android:name="android.intent.action.MAIN"/>
266+
<category android:name="android.intent.category.LAUNCHER"/>
267+
</intent-filter>
268+
</activity-alias>
269+
270+
<activity-alias
271+
android:name=".activities.SplashActivity.Yellow"
272+
android:enabled="false"
273+
android:icon="@mipmap/ic_launcher_yellow"
274+
android:roundIcon="@mipmap/ic_launcher_yellow"
275+
android:targetActivity=".activities.SplashActivity">
276+
277+
<intent-filter>
278+
<action android:name="android.intent.action.MAIN"/>
279+
<category android:name="android.intent.category.LAUNCHER"/>
280+
</intent-filter>
281+
</activity-alias>
282+
283+
<activity-alias
284+
android:name=".activities.SplashActivity.Amber"
285+
android:enabled="false"
286+
android:icon="@mipmap/ic_launcher_amber"
287+
android:roundIcon="@mipmap/ic_launcher_amber"
288+
android:targetActivity=".activities.SplashActivity">
289+
290+
<intent-filter>
291+
<action android:name="android.intent.action.MAIN"/>
292+
<category android:name="android.intent.category.LAUNCHER"/>
293+
</intent-filter>
294+
</activity-alias>
295+
296+
<activity-alias
297+
android:name=".activities.SplashActivity.Deep_orange"
298+
android:enabled="false"
299+
android:icon="@mipmap/ic_launcher_deep_orange"
300+
android:roundIcon="@mipmap/ic_launcher_deep_orange"
301+
android:targetActivity=".activities.SplashActivity">
302+
303+
<intent-filter>
304+
<action android:name="android.intent.action.MAIN"/>
305+
<category android:name="android.intent.category.LAUNCHER"/>
306+
</intent-filter>
307+
</activity-alias>
308+
309+
<activity-alias
310+
android:name=".activities.SplashActivity.Brown"
311+
android:enabled="false"
312+
android:icon="@mipmap/ic_launcher_brown"
313+
android:roundIcon="@mipmap/ic_launcher_brown"
314+
android:targetActivity=".activities.SplashActivity">
315+
316+
<intent-filter>
317+
<action android:name="android.intent.action.MAIN"/>
318+
<category android:name="android.intent.category.LAUNCHER"/>
319+
</intent-filter>
320+
</activity-alias>
321+
322+
<activity-alias
323+
android:name=".activities.SplashActivity.Blue_grey"
324+
android:enabled="false"
325+
android:icon="@mipmap/ic_launcher_blue_grey"
326+
android:roundIcon="@mipmap/ic_launcher_blue_grey"
327+
android:targetActivity=".activities.SplashActivity">
328+
329+
<intent-filter>
330+
<action android:name="android.intent.action.MAIN"/>
331+
<category android:name="android.intent.category.LAUNCHER"/>
332+
</intent-filter>
333+
</activity-alias>
334+
335+
<activity-alias
336+
android:name=".activities.SplashActivity.Grey_black"
337+
android:enabled="false"
338+
android:icon="@mipmap/ic_launcher_grey_black"
339+
android:roundIcon="@mipmap/ic_launcher_grey_black"
340+
android:targetActivity=".activities.SplashActivity">
341+
342+
<intent-filter>
343+
<action android:name="android.intent.action.MAIN"/>
344+
<category android:name="android.intent.category.LAUNCHER"/>
345+
</intent-filter>
346+
</activity-alias>
100347
</application>
101348
</manifest>

app/src/main/kotlin/com/simplemobiletools/flashlight/activities/SimpleActivity.kt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,25 @@ import com.simplemobiletools.flashlight.R
55

66
open class SimpleActivity : BaseSimpleActivity() {
77
override fun getAppIconIDs() = arrayListOf(
8-
R.mipmap.ic_launcher
8+
R.mipmap.ic_launcher_red,
9+
R.mipmap.ic_launcher_pink,
10+
R.mipmap.ic_launcher_purple,
11+
R.mipmap.ic_launcher_deep_purple,
12+
R.mipmap.ic_launcher_indigo,
13+
R.mipmap.ic_launcher_blue,
14+
R.mipmap.ic_launcher_light_blue,
15+
R.mipmap.ic_launcher_cyan,
16+
R.mipmap.ic_launcher_teal,
17+
R.mipmap.ic_launcher_green,
18+
R.mipmap.ic_launcher_light_green,
19+
R.mipmap.ic_launcher_lime,
20+
R.mipmap.ic_launcher_yellow,
21+
R.mipmap.ic_launcher_amber,
22+
R.mipmap.ic_launcher,
23+
R.mipmap.ic_launcher_deep_orange,
24+
R.mipmap.ic_launcher_brown,
25+
R.mipmap.ic_launcher_blue_grey,
26+
R.mipmap.ic_launcher_grey_black
927
)
1028

1129
override fun getAppLauncherName() = getString(R.string.app_launcher_name)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@color/color_primary"/>
4-
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
3+
<background android:drawable="@color/md_orange_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
55
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_amber_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_blue_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_blue_grey_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_brown_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_cyan_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_deep_orange_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/md_deep_purple_700"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>

0 commit comments

Comments
 (0)