Skip to content

Commit 2eb97ee

Browse files
committed
adding colored launcher icons
1 parent 20359e5 commit 2eb97ee

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

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,25 @@ import com.simplemobiletools.filemanager.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)