Skip to content

Commit

Permalink
new icons (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkasdorf authored Jul 10, 2023
1 parent c6a6846 commit 2a99c0e
Show file tree
Hide file tree
Showing 187 changed files with 922 additions and 33 deletions.
660 changes: 660 additions & 0 deletions ios/Memmy.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/brown.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_brown_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/darkgray.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_gray_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/lightgray.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_lightgray_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/original.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "icon_old_2.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/pink.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_pink_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/pride.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_pride_6_color_horiz_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/pridenew.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_pride_new_progress_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/transpride.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_pride_trans_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ios/Memmy/Images.xcassets/yellow.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "saturn_big_yellow_circles_1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 83 additions & 2 deletions ios/Memmy/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
<dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>purple</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>purple</string>
</array>
</dict>
<key>green</key>
<dict>
<key>UIPrerenderedIcon</key>
Expand Down Expand Up @@ -33,13 +42,85 @@
<string>blue</string>
</array>
</dict>
<key>purple</key>
<key>transpride</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>purple</string>
<string>transpride</string>
</array>
</dict>
<key>pridenew</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>pridenew</string>
</array>
</dict>
<key>pride</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>pride</string>
</array>
</dict>
<key>darkgray</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>darkgray</string>
</array>
</dict>
<key>lightgray</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>lightgray</string>
</array>
</dict>
<key>pink</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>pink</string>
</array>
</dict>
<key>orange</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>orange</string>
</array>
</dict>
<key>brown</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>brown</string>
</array>
</dict>
<key>yellow</key>
<dict>
<key>UIPrerenderedIcon</key>
<string>NO</string>
<key>CFBundleIconFiles</key>
<array>
<string>yellow</string>
</array>
</dict>
</dict>
Expand Down
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-20@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-20~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-29@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-29~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-40@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-40~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown-83.5@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/brown@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ios/[email protected]
Binary file added ios/brown~ipad.png
Binary file added ios/[email protected]
Binary file added ios/darkgray-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/darkgray-20~ipad.png
Binary file added ios/darkgray-29.png
Binary file added ios/[email protected]
Binary file added ios/darkgray-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/darkgray-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/darkgray-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/darkgray-40~ipad.png
Binary file added ios/darkgray-83.5@2x~ipad.png
Binary file added ios/darkgray.png
Binary file added ios/[email protected]
Binary file added ios/darkgray@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/darkgray~ipad.png
Binary file added ios/[email protected]
Binary file added ios/lightgray-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/lightgray-20~ipad.png
Binary file added ios/lightgray-29.png
Binary file added ios/[email protected]
Binary file added ios/lightgray-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/lightgray-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/lightgray-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/lightgray-40~ipad.png
Binary file added ios/lightgray-83.5@2x~ipad.png
Binary file added ios/lightgray.png
Binary file added ios/[email protected]
Binary file added ios/lightgray@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/lightgray~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange-20~ipad.png
Binary file added ios/orange-29.png
Binary file added ios/[email protected]
Binary file added ios/orange-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange-40~ipad.png
Binary file added ios/orange-83.5@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/orange~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pink-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pink-20~ipad.png
Binary file added ios/pink-29.png
Binary file added ios/[email protected]
Binary file added ios/pink-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pink-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pink-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pink-40~ipad.png
Binary file added ios/pink-83.5@2x~ipad.png
Binary file added ios/pink.png
Binary file added ios/[email protected]
Binary file added ios/pink@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pink~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pride-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pride-20~ipad.png
Binary file added ios/pride-29.png
Binary file added ios/[email protected]
Binary file added ios/pride-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pride-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pride-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pride-40~ipad.png
Binary file added ios/pride-83.5@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pride@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/[email protected]
Binary file added ios/pridenew-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pridenew-20~ipad.png
Binary file added ios/pridenew-29.png
Binary file added ios/[email protected]
Binary file added ios/pridenew-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pridenew-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pridenew-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pridenew-40~ipad.png
Binary file added ios/pridenew-83.5@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pridenew@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/pridenew~ipad.png
Binary file added ios/pride~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride-20~ipad.png
Binary file added ios/transpride-29.png
Binary file added ios/[email protected]
Binary file added ios/transpride-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride-40~ipad.png
Binary file added ios/transpride-83.5@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/transpride~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow-20@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow-20~ipad.png
Binary file added ios/yellow-29.png
Binary file added ios/[email protected]
Binary file added ios/yellow-29@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow-29~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow-40@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow-40~ipad.png
Binary file added ios/yellow-83.5@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow@2x~ipad.png
Binary file added ios/[email protected]
Binary file added ios/yellow~ipad.png
60 changes: 30 additions & 30 deletions src/components/screens/Settings/Appearance/AppearanceScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,36 @@ function AppearanceScreen({ navigation }: IProps) {
return (
<ScrollView backgroundColor={theme.colors.app.bg} flex={1}>
<TableView style={styles.table}>
<CSection header="APP ICON" footer="App icons by [email protected]">
<CCell
cellStyle="RightDetail"
title="App Icon"
detail={appIconOptions.find((o) => o[0] === settings.appIcon)[1]}
backgroundColor={theme.colors.app.fg}
titleTextColor={theme.colors.app.textPrimary}
rightDetailColor={theme.colors.app.textSecondary}
accessory="DisclosureIndicator"
onPress={() => {
const options = [...appIconOptions.map((o) => o[1]), "Cancel"];
const cancelButtonIndex = options.length - 1;

showActionSheetWithOptions(
{
options,
cancelButtonIndex,
userInterfaceStyle: theme.config.initialColorMode,
},
(index: number) => {
if (index === cancelButtonIndex) return;

dispatch(setSetting({ appIcon: appIconOptions[index][0] }));

changeIcon(appIconOptions[index][0]);
}
);
}}
/>
</CSection>
<CSection header="Content">
<CCell
cellStyle="Basic"
Expand Down Expand Up @@ -385,36 +415,6 @@ function AppearanceScreen({ navigation }: IProps) {
}}
/>
</CSection>
<CSection header="APP ICON">
<CCell
cellStyle="RightDetail"
title="App Icon"
detail={appIconOptions.find((o) => o[0] === settings.appIcon)[1]}
backgroundColor={theme.colors.app.fg}
titleTextColor={theme.colors.app.textPrimary}
rightDetailColor={theme.colors.app.textSecondary}
accessory="DisclosureIndicator"
onPress={() => {
const options = [...appIconOptions.map((o) => o[1]), "Cancel"];
const cancelButtonIndex = options.length - 1;

showActionSheetWithOptions(
{
options,
cancelButtonIndex,
userInterfaceStyle: theme.config.initialColorMode,
},
(index: number) => {
if (index === cancelButtonIndex) return;

dispatch(setSetting({ appIcon: appIconOptions[index][0] }));

changeIcon(appIconOptions[index][0]);
}
);
}}
/>
</CSection>
</TableView>
</ScrollView>
);
Expand Down
24 changes: 23 additions & 1 deletion src/types/AppIconType.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
export type AppIconType = "purple" | "blue" | "red" | "green";
export type AppIconType =
| "purple"
| "blue"
| "red"
| "green"
| "yellow"
| "brown"
| "pink"
| "darkgray"
| "lightgray"
| "orange"
| "pride"
| "pridenew"
| "transpride";
export type AppIconOption = [key: AppIconType, display: string];

export const appIconOptions: AppIconOption[] = [
["purple", "Default"],
["blue", "Blue"],
["red", "Red"],
["green", "Green"],
["yellow", "Yellow"],
["pink", "Pink"],
["orange", "Orange"],
["lightgray", "Light Gray"],
["darkgray", "Dark Gray"],
["brown", "Brown"],
["pride", "Pride"],
["pridenew", "Pride (New)"],
["transpride", "Trans Pride"],
];

0 comments on commit 2a99c0e

Please sign in to comment.