Skip to content

Commit

Permalink
Add pride icon to android, web, ios
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Dec 7, 2023
1 parent 56e61b7 commit 715bf36
Show file tree
Hide file tree
Showing 28 changed files with 44 additions and 0 deletions.
13 changes: 13 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@
</intent-filter>
</activity-alias>

<activity-alias
android:label="@string/title_activity_main"
android:icon="@mipmap/pride"
android:name=".pride"
android:enabled="false"
android:exported="true"
android:targetActivity=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
Expand Down
5 changes: 5 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/pride.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/pride_background"/>
<foreground android:drawable="@mipmap/pride_foreground"/>
</adaptive-icon>
Binary file added android/app/src/main/res/mipmap-hdpi/pride.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/res/mipmap-mdpi/pride.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/res/mipmap-xhdpi/pride.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/res/mipmap-xxhdpi/pride.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.
4 changes: 4 additions & 0 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
E75D25702A7C369900C4AD87 /* SavePost.swift in Sources */ = {isa = PBXBuildFile; fileRef = E75D256C2A7C369800C4AD87 /* SavePost.swift */; };
E75D25712A7C369900C4AD87 /* PostView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E75D256D2A7C369800C4AD87 /* PostView.swift */; };
E75D25722A7C369900C4AD87 /* GetPostsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = E75D256E2A7C369800C4AD87 /* GetPostsResponse.swift */; };
E76185BB2B213B200044BA55 /* pride.png in Resources */ = {isa = PBXBuildFile; fileRef = E76185BA2B213B200044BA55 /* pride.png */; };
E761A9562A8B15EE00DDD466 /* space.png in Resources */ = {isa = PBXBuildFile; fileRef = E761A9552A8B15EE00DDD466 /* space.png */; };
E761A9592A8B15F800DDD466 /* psych.png in Resources */ = {isa = PBXBuildFile; fileRef = E761A9572A8B15F800DDD466 /* psych.png */; };
E761A95A2A8B15F800DDD466 /* planetary.png in Resources */ = {isa = PBXBuildFile; fileRef = E761A9582A8B15F800DDD466 /* planetary.png */; };
Expand Down Expand Up @@ -88,6 +89,7 @@
E75D256C2A7C369800C4AD87 /* SavePost.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SavePost.swift; sourceTree = "<group>"; };
E75D256D2A7C369800C4AD87 /* PostView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PostView.swift; sourceTree = "<group>"; };
E75D256E2A7C369800C4AD87 /* GetPostsResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GetPostsResponse.swift; sourceTree = "<group>"; };
E76185BA2B213B200044BA55 /* pride.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pride.png; sourceTree = "<group>"; };
E761A9552A8B15EE00DDD466 /* space.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = space.png; sourceTree = "<group>"; };
E761A9572A8B15F800DDD466 /* psych.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = psych.png; sourceTree = "<group>"; };
E761A9582A8B15F800DDD466 /* planetary.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = planetary.png; sourceTree = "<group>"; };
Expand Down Expand Up @@ -208,6 +210,7 @@
E761A9582A8B15F800DDD466 /* planetary.png */,
E73A34CA2A8DAE3A0004DC5B /* galactic.png */,
E73782662A8B33E200FCDF7B /* original.png */,
E76185BA2B213B200044BA55 /* pride.png */,
E761A9572A8B15F800DDD466 /* psych.png */,
E761A9552A8B15EE00DDD466 /* space.png */,
);
Expand Down Expand Up @@ -307,6 +310,7 @@
E73782672A8B33E200FCDF7B /* original.png in Resources */,
E761A9592A8B15F800DDD466 /* psych.png in Resources */,
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
E76185BB2B213B200044BA55 /* pride.png in Resources */,
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
2FAD9763203C412B000D30F8 /* config.xml in Resources */,
E761A9562A8B15EE00DDD466 /* space.png in Resources */,
Expand Down
Binary file modified ios/App/App/AlternateIcons/pride.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions ios/App/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
<string>galactic</string>
</array>
</dict>
<key>pride</key>
<dict>
<key>UIPrerenderedIcon</key>
<true/>
<key>CFBundleIconFiles</key>
<array>
<string>pride</string>
</array>
</dict>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
Expand Down Expand Up @@ -149,6 +158,15 @@
<string>galactic</string>
</array>
</dict>
<key>pride</key>
<dict>
<key>UIPrerenderedIcon</key>
<true/>
<key>CFBundleIconFiles</key>
<array>
<string>pride</string>
</array>
</dict>
</dict>
</dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
Expand Down
Binary file added public/alternateIcons/pride.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/features/settings/app-icon/AppIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ function getIconName(icon: AppIcon): string {
return "O.G.";
case "galactic":
return "Enter Galactic";
case "pride":
return "Progress Pride";
}
}

Expand All @@ -96,6 +98,7 @@ function getIconAuthor(icon: AppIcon): string {
case "default":
case "planetary":
case "psych":
case "pride":
return "fer0n";
case "space":
return "ripened_avacado";
Expand Down
1 change: 1 addition & 0 deletions src/features/settings/app-icon/appIconSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const APP_ICONS = [
"default",
"planetary",
"psych",
"pride",
"space",
"galactic",
"original",
Expand Down

0 comments on commit 715bf36

Please sign in to comment.