Skip to content

Commit

Permalink
chore: Organize and optimize icons (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
zt64 authored Feb 8, 2025
1 parent 8867f7a commit 7efd427
Show file tree
Hide file tree
Showing 44 changed files with 47 additions and 48 deletions.
22 changes: 11 additions & 11 deletions app/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.Gloom"
tools:targetApi="31">
Expand Down Expand Up @@ -62,7 +62,7 @@
<activity-alias
android:name="gloom.icons.classic.Main"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:enabled="true"
android:exported="true">
<intent-filter>
Expand All @@ -74,7 +74,7 @@
<activity-alias
android:name="gloom.icons.classic.Sky"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_sky"
android:icon="@mipmap/ic_launcher_sky"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -86,7 +86,7 @@
<activity-alias
android:name="gloom.icons.classic.Light"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_light"
android:icon="@mipmap/ic_launcher_light"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -100,7 +100,7 @@
<activity-alias
android:name="gloom.icons.pride.LGBT"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_pride"
android:icon="@mipmap/ic_launcher_pride"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -112,7 +112,7 @@
<activity-alias
android:name="gloom.icons.pride.Trans"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_trans"
android:icon="@mipmap/ic_launcher_trans"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -124,7 +124,7 @@
<activity-alias
android:name="gloom.icons.pride.TransInverted"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_trans_inverted"
android:icon="@mipmap/ic_launcher_trans_inverted"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -138,7 +138,7 @@
<activity-alias
android:name="gloom.icons.catppuccin.Mocha"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_mocha"
android:icon="@mipmap/ic_launcher_mocha"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -150,7 +150,7 @@
<activity-alias
android:name="gloom.icons.catppuccin.Macchiato"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_macchiato"
android:icon="@mipmap/ic_launcher_macchiato"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -162,7 +162,7 @@
<activity-alias
android:name="gloom.icons.catppuccin.Frappe"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_frappe"
android:icon="@mipmap/ic_launcher_frappe"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand All @@ -174,7 +174,7 @@
<activity-alias
android:name="gloom.icons.catppuccin.Latte"
android:targetActivity=".ui.GloomActivity"
android:icon="@drawable/ic_launcher_latte"
android:icon="@mipmap/ic_launcher_latte"
android:enabled="false"
android:exported="true">
<intent-filter>
Expand Down
13 changes: 0 additions & 13 deletions app/android/src/main/res/drawable-v26/ic_launcher_sky.xml

This file was deleted.

Binary file not shown.
Binary file removed app/android/src/main/res/drawable/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_frappe_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_frappe_background" />
<foreground android:drawable="@drawable/ic_launcher_frappe_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_latte_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_latte_background" />
<foreground android:drawable="@drawable/ic_launcher_latte_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/white" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_macchiato_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_macchiato_background" />
<foreground android:drawable="@drawable/ic_launcher_macchiato_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_mocha_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_mocha_background" />
<foreground android:drawable="@drawable/ic_launcher_mocha_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_pride_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_pride_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
13 changes: 13 additions & 0 deletions app/android/src/main/res/mipmap-anydpi-v26/ic_launcher_sky.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background>
<shape android:shape="rectangle">
<gradient
android:type="linear"
android:startColor="#FF8080FF"
android:endColor="#FF6E6EFF" />
</shape>
</background>
<foreground android:drawable="@drawable/ic_launcher_monochrome" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@drawable/ic_launcher_trans_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_trans_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
<adaptive-icon
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<foreground android:drawable="@drawable/ic_launcher_trans_inverted_foreground" />
<monochrome android:drawable="@drawable/ic_gloom_monochrome" />
<background>
<vector
android:height="200dp"
android:width="200dp"
android:viewportHeight="1024"
android:viewportWidth="1024">
android:height="200dp"
android:width="200dp"
android:viewportHeight="1024"
android:viewportWidth="1024">
<path android:pathData="M0,0h1024v1024h-1024z">
<aapt:attr name="android:fillColor">
<gradient android:endX="874" android:endY="874" android:startX="150" android:startY="150" android:type="linear">
Expand All @@ -21,4 +19,6 @@
</path>
</vector>
</background>
<foreground android:drawable="@mipmap/ic_launcher_trans_inverted_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>
Binary file added app/android/src/main/res/mipmap/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions app/android/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="Theme.Gloom" parent="android:Theme.Material.NoActionBar" />

<style name="Theme.Gloom.Splash" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_gloom</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_icon</item>
<item name="windowSplashScreenBackground">@color/ic_launcher_background</item>
<item name="postSplashScreenTheme">@style/Theme.Gloom</item>
</style>
Expand Down

0 comments on commit 7efd427

Please sign in to comment.