Skip to content

Commit e390440

Browse files
committed
adding colored launcher icons
1 parent ba76c18 commit e390440

File tree

123 files changed

+334
-15
lines changed

Some content is hidden

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

123 files changed

+334
-15
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ext {
4545
}
4646

4747
dependencies {
48-
implementation 'com.simplemobiletools:commons:3.21.2'
48+
implementation 'com.simplemobiletools:commons:4.0.0'
4949
implementation 'joda-time:joda-time:2.9.9'
5050
implementation 'com.facebook.stetho:stetho:1.5.0'
5151

app/src/main/AndroidManifest.xml

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,228 @@
210210
android:icon="@mipmap/ic_launcher_red"
211211
android:roundIcon="@mipmap/ic_launcher_red"
212212
android:targetActivity=".activities.SplashActivity">
213+
214+
<intent-filter>
215+
<action android:name="android.intent.action.MAIN"/>
216+
<category android:name="android.intent.category.LAUNCHER"/>
217+
</intent-filter>
218+
</activity-alias>
219+
220+
<activity-alias
221+
android:name=".activities.SplashActivity.Pink"
222+
android:enabled="false"
223+
android:icon="@mipmap/ic_launcher_pink"
224+
android:roundIcon="@mipmap/ic_launcher_pink"
225+
android:targetActivity=".activities.SplashActivity">
226+
227+
<intent-filter>
228+
<action android:name="android.intent.action.MAIN"/>
229+
<category android:name="android.intent.category.LAUNCHER"/>
230+
</intent-filter>
231+
</activity-alias>
232+
233+
<activity-alias
234+
android:name=".activities.SplashActivity.Purple"
235+
android:enabled="false"
236+
android:icon="@mipmap/ic_launcher_purple"
237+
android:roundIcon="@mipmap/ic_launcher_purple"
238+
android:targetActivity=".activities.SplashActivity">
239+
240+
<intent-filter>
241+
<action android:name="android.intent.action.MAIN"/>
242+
<category android:name="android.intent.category.LAUNCHER"/>
243+
</intent-filter>
244+
</activity-alias>
245+
246+
<activity-alias
247+
android:name=".activities.SplashActivity.Deep_purple"
248+
android:enabled="false"
249+
android:icon="@mipmap/ic_launcher_deep_purple"
250+
android:roundIcon="@mipmap/ic_launcher_deep_purple"
251+
android:targetActivity=".activities.SplashActivity">
252+
253+
<intent-filter>
254+
<action android:name="android.intent.action.MAIN"/>
255+
<category android:name="android.intent.category.LAUNCHER"/>
256+
</intent-filter>
257+
</activity-alias>
258+
259+
<activity-alias
260+
android:name=".activities.SplashActivity.Indigo"
261+
android:enabled="false"
262+
android:icon="@mipmap/ic_launcher_indigo"
263+
android:roundIcon="@mipmap/ic_launcher_indigo"
264+
android:targetActivity=".activities.SplashActivity">
265+
266+
<intent-filter>
267+
<action android:name="android.intent.action.MAIN"/>
268+
<category android:name="android.intent.category.LAUNCHER"/>
269+
</intent-filter>
270+
</activity-alias>
271+
272+
<activity-alias
273+
android:name=".activities.SplashActivity.Blue"
274+
android:enabled="false"
275+
android:icon="@mipmap/ic_launcher_blue"
276+
android:roundIcon="@mipmap/ic_launcher_blue"
277+
android:targetActivity=".activities.SplashActivity">
278+
279+
<intent-filter>
280+
<action android:name="android.intent.action.MAIN"/>
281+
<category android:name="android.intent.category.LAUNCHER"/>
282+
</intent-filter>
283+
</activity-alias>
284+
285+
<activity-alias
286+
android:name=".activities.SplashActivity.Light_blue"
287+
android:enabled="false"
288+
android:icon="@mipmap/ic_launcher_light_blue"
289+
android:roundIcon="@mipmap/ic_launcher_light_blue"
290+
android:targetActivity=".activities.SplashActivity">
291+
292+
<intent-filter>
293+
<action android:name="android.intent.action.MAIN"/>
294+
<category android:name="android.intent.category.LAUNCHER"/>
295+
</intent-filter>
296+
</activity-alias>
297+
298+
<activity-alias
299+
android:name=".activities.SplashActivity.Cyan"
300+
android:enabled="false"
301+
android:icon="@mipmap/ic_launcher_cyan"
302+
android:roundIcon="@mipmap/ic_launcher_cyan"
303+
android:targetActivity=".activities.SplashActivity">
304+
305+
<intent-filter>
306+
<action android:name="android.intent.action.MAIN"/>
307+
<category android:name="android.intent.category.LAUNCHER"/>
308+
</intent-filter>
309+
</activity-alias>
310+
311+
<activity-alias
312+
android:name=".activities.SplashActivity.Teal"
313+
android:enabled="false"
314+
android:icon="@mipmap/ic_launcher_teal"
315+
android:roundIcon="@mipmap/ic_launcher_teal"
316+
android:targetActivity=".activities.SplashActivity">
317+
318+
<intent-filter>
319+
<action android:name="android.intent.action.MAIN"/>
320+
<category android:name="android.intent.category.LAUNCHER"/>
321+
</intent-filter>
322+
</activity-alias>
323+
324+
<activity-alias
325+
android:name=".activities.SplashActivity.Green"
326+
android:enabled="false"
327+
android:icon="@mipmap/ic_launcher_green"
328+
android:roundIcon="@mipmap/ic_launcher_green"
329+
android:targetActivity=".activities.SplashActivity">
330+
331+
<intent-filter>
332+
<action android:name="android.intent.action.MAIN"/>
333+
<category android:name="android.intent.category.LAUNCHER"/>
334+
</intent-filter>
335+
</activity-alias>
336+
337+
<activity-alias
338+
android:name=".activities.SplashActivity.Light_green"
339+
android:enabled="false"
340+
android:icon="@mipmap/ic_launcher_light_green"
341+
android:roundIcon="@mipmap/ic_launcher_light_green"
342+
android:targetActivity=".activities.SplashActivity">
343+
344+
<intent-filter>
345+
<action android:name="android.intent.action.MAIN"/>
346+
<category android:name="android.intent.category.LAUNCHER"/>
347+
</intent-filter>
348+
</activity-alias>
349+
350+
<activity-alias
351+
android:name=".activities.SplashActivity.Lime"
352+
android:enabled="false"
353+
android:icon="@mipmap/ic_launcher_lime"
354+
android:roundIcon="@mipmap/ic_launcher_lime"
355+
android:targetActivity=".activities.SplashActivity">
356+
357+
<intent-filter>
358+
<action android:name="android.intent.action.MAIN"/>
359+
<category android:name="android.intent.category.LAUNCHER"/>
360+
</intent-filter>
361+
</activity-alias>
362+
363+
<activity-alias
364+
android:name=".activities.SplashActivity.Yellow"
365+
android:enabled="false"
366+
android:icon="@mipmap/ic_launcher_yellow"
367+
android:roundIcon="@mipmap/ic_launcher_yellow"
368+
android:targetActivity=".activities.SplashActivity">
369+
370+
<intent-filter>
371+
<action android:name="android.intent.action.MAIN"/>
372+
<category android:name="android.intent.category.LAUNCHER"/>
373+
</intent-filter>
374+
</activity-alias>
375+
376+
<activity-alias
377+
android:name=".activities.SplashActivity.Amber"
378+
android:enabled="false"
379+
android:icon="@mipmap/ic_launcher_amber"
380+
android:roundIcon="@mipmap/ic_launcher_amber"
381+
android:targetActivity=".activities.SplashActivity">
382+
383+
<intent-filter>
384+
<action android:name="android.intent.action.MAIN"/>
385+
<category android:name="android.intent.category.LAUNCHER"/>
386+
</intent-filter>
387+
</activity-alias>
388+
389+
<activity-alias
390+
android:name=".activities.SplashActivity.Deep_orange"
391+
android:enabled="false"
392+
android:icon="@mipmap/ic_launcher_deep_orange"
393+
android:roundIcon="@mipmap/ic_launcher_deep_orange"
394+
android:targetActivity=".activities.SplashActivity">
395+
396+
<intent-filter>
397+
<action android:name="android.intent.action.MAIN"/>
398+
<category android:name="android.intent.category.LAUNCHER"/>
399+
</intent-filter>
400+
</activity-alias>
401+
402+
<activity-alias
403+
android:name=".activities.SplashActivity.Brown"
404+
android:enabled="false"
405+
android:icon="@mipmap/ic_launcher_brown"
406+
android:roundIcon="@mipmap/ic_launcher_brown"
407+
android:targetActivity=".activities.SplashActivity">
408+
409+
<intent-filter>
410+
<action android:name="android.intent.action.MAIN"/>
411+
<category android:name="android.intent.category.LAUNCHER"/>
412+
</intent-filter>
413+
</activity-alias>
414+
415+
<activity-alias
416+
android:name=".activities.SplashActivity.Blue_grey"
417+
android:enabled="false"
418+
android:icon="@mipmap/ic_launcher_blue_grey"
419+
android:roundIcon="@mipmap/ic_launcher_blue_grey"
420+
android:targetActivity=".activities.SplashActivity">
421+
422+
<intent-filter>
423+
<action android:name="android.intent.action.MAIN"/>
424+
<category android:name="android.intent.category.LAUNCHER"/>
425+
</intent-filter>
426+
</activity-alias>
427+
428+
<activity-alias
429+
android:name=".activities.SplashActivity.Grey_black"
430+
android:enabled="false"
431+
android:icon="@mipmap/ic_launcher_grey_black"
432+
android:roundIcon="@mipmap/ic_launcher_grey_black"
433+
android:targetActivity=".activities.SplashActivity">
434+
213435
<intent-filter>
214436
<action android:name="android.intent.action.MAIN"/>
215437
<category android:name="android.intent.category.LAUNCHER"/>

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,24 @@ import com.simplemobiletools.contacts.R
66
open class SimpleActivity : BaseSimpleActivity() {
77
override fun getAppIconIDs() = arrayListOf(
88
R.mipmap.ic_launcher_red,
9-
R.mipmap.ic_launcher
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
1027
)
1128

1229
override fun getAppLauncherName() = getString(R.string.app_launcher_name)

app/src/main/res/drawable-v26/ic_launcher_foreground.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 3 additions & 3 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"/>
5-
</adaptive-icon>
3+
<background android:drawable="@color/md_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_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>

0 commit comments

Comments
 (0)