Skip to content

Commit

Permalink
feat: Add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisL61 committed Jun 19, 2024
1 parent 1efd102 commit 4c7d9c9
Show file tree
Hide file tree
Showing 28 changed files with 224 additions and 68 deletions.
62 changes: 62 additions & 0 deletions api/activities.json
Original file line number Diff line number Diff line change
Expand Up @@ -1036,5 +1036,67 @@
]
}
]
},
{
"id": "pirate_lord_hourglass",
"name": "_pirate_lord_hourglass",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/companies/icons/pirate_lord_hourglass.png",
"background_image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/companies/pirate-lord-hourglass.svg",
"categories": [
{
"id": "pirate_lord_hourglass",
"name": "_pirate_lord_hourglass",
"icon": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/categories/Pirate_Lord_Hourglass_icon.png",
"activities": [
{
"id": "pirate_lord_hourglass_attack",
"name": "_pirate_lord_hourglass_attack",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Defense_Pirate_Lord_Hourglass.webp",
"length": 5,
"description": "_pirate_lord_hourglass_attack_description",
"rpc": "_pirate_lord_hourglass_attack_rpc"
},
{
"id": "pirate_lord_hourglass_defense",
"name": "_pirate_lord_hourglass_defense",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Defense_Pirate_Lord_Hourglass.webp",
"length": 5,
"description": "_pirate_lord_hourglass_defense_description",
"rpc": "_pirate_lord_hourglass_defense_rpc"
}
]
}
]
},
{
"id": "flameheart_hourglass",
"name": "_flameheart_hourglass",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/companies/icons/flameheart_hourglass.png",
"background_image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/companies/flameheart-hourglass.svg",
"categories": [
{
"id": "flameheart_hourglass",
"name": "_flameheart_hourglass",
"icon": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/categories/Flameheart_Hourglass_icon.png",
"activities": [
{
"id": "flameheart_hourglass_attack",
"name": "_flameheart_hourglass_attack",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Defense_Flameheart_Hourglass.webp",
"length": 5,
"description": "_flameheart_hourglass_attack_description",
"rpc": "_flameheart_hourglass_attack_rpc"
},
{
"id": "flameheart_hourglass_defense",
"name": "_flameheart_hourglass_defense",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Defense_Flameheart_Hourglass.webp",
"length": 5,
"description": "_flameheart_hourglass_defense_description",
"rpc": "_flameheart_hourglass_defense_rpc"
}
]
}
]
}
]
16 changes: 15 additions & 1 deletion api/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,20 @@
"_revenge_of_the_morningstar_rpc": "In a tall tale : The Revenge of the Morningstar",
"_shores_of_gold_tall_tale": "The Shores of Gold",
"_shores_of_gold_tall_tale_description": "Embark on a mission to find the shores of gold.",
"_tshores_of_gold_tall_tale_rpc": "In a tall tale : The Shores of Gold"
"_shores_of_gold_tall_tale_rpc": "In a tall tale : The Shores of Gold",

"_pirate_lord_hourglass": "Guardians of Fortune",
"_pirate_lord_hourglass_attack": "Attack",
"_pirate_lord_hourglass_attack_description": "Defeat the Servants of the Flame by diving into the sea",
"_pirate_lord_hourglass_attack_rpc": "In a Hourglass fight",
"_pirate_lord_hourglass_defense": "Defense",
"_pirate_lord_hourglass_defense_description": "Defend your treasures against the Servants of the Flame",
"_pirate_lord_hourglass_defense_rpc": "In a Hourglass fight",
"_flameheart_hourglass": "Servants of the Flame",
"_flameheart_hourglass_attack": "Attack",
"_flameheart_hourglass_attack_description": "Defeat the Guardians of Fortune by diving into the sea",
"_flameheart_hourglass_attack_rpc": "In a Hourglass fight",
"_flameheart_hourglass_defense": "Defense",
"_flameheart_hourglass_defense_description": "Defend your treasures against the Guardians of Fortune",
"_flameheart_hourglass_defense_rpc": "In a Hourglass fight"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added assets/companies/icons/flameheart_hourglass.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 assets/companies/icons/pirate_lord_hourglass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added sot_richpresence/assets/png/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
{
"images" : [
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "app_icon_16.png",
"scale" : "1x"
"info": {
"version": 1,
"author": "xcode"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "app_icon_32.png",
"scale" : "2x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "app_icon_32.png",
"scale" : "1x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "app_icon_64.png",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "app_icon_128.png",
"scale" : "1x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "app_icon_256.png",
"scale" : "2x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "app_icon_256.png",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "app_icon_512.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "app_icon_512.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "app_icon_1024.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
"images": [
{
"size": "16x16",
"idiom": "mac",
"filename": "app_icon_16.png",
"scale": "1x"
},
{
"size": "16x16",
"idiom": "mac",
"filename": "app_icon_32.png",
"scale": "2x"
},
{
"size": "32x32",
"idiom": "mac",
"filename": "app_icon_32.png",
"scale": "1x"
},
{
"size": "32x32",
"idiom": "mac",
"filename": "app_icon_64.png",
"scale": "2x"
},
{
"size": "128x128",
"idiom": "mac",
"filename": "app_icon_128.png",
"scale": "1x"
},
{
"size": "128x128",
"idiom": "mac",
"filename": "app_icon_256.png",
"scale": "2x"
},
{
"size": "256x256",
"idiom": "mac",
"filename": "app_icon_256.png",
"scale": "1x"
},
{
"size": "256x256",
"idiom": "mac",
"filename": "app_icon_512.png",
"scale": "2x"
},
{
"size": "512x512",
"idiom": "mac",
"filename": "app_icon_512.png",
"scale": "1x"
},
{
"size": "512x512",
"idiom": "mac",
"filename": "app_icon_1024.png",
"scale": "2x"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions sot_richpresence/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
url: "https://pub.dev"
source: hosted
version: "3.6.1"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -33,6 +41,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.0"
checked_yaml:
dependency: transitive
description:
name: checked_yaml
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
url: "https://pub.dev"
source: hosted
version: "2.0.3"
cli_util:
dependency: transitive
description:
name: cli_util
sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
url: "https://pub.dev"
source: hosted
version: "0.4.1"
clock:
dependency: transitive
description:
Expand All @@ -49,6 +73,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.18.0"
crypto:
dependency: transitive
description:
name: crypto
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
url: "https://pub.dev"
source: hosted
version: "3.0.3"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -119,6 +151,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_launcher_icons:
dependency: "direct dev"
description:
name: flutter_launcher_icons
sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea"
url: "https://pub.dev"
source: hosted
version: "0.13.1"
flutter_lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -174,6 +214,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
image:
dependency: transitive
description:
name: image
sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8"
url: "https://pub.dev"
source: hosted
version: "4.2.0"
intl:
dependency: transitive
description:
Expand All @@ -182,6 +230,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.18.1"
json_annotation:
dependency: transitive
description:
name: json_annotation
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
url: "https://pub.dev"
source: hosted
version: "4.9.0"
leak_tracker:
dependency: transitive
description:
Expand Down Expand Up @@ -579,6 +635,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.5.0"
yaml:
dependency: transitive
description:
name: yaml
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
url: "https://pub.dev"
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.2.6 <4.0.0"
flutter: ">=3.16.6"
16 changes: 16 additions & 0 deletions sot_richpresence/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
flutter_launcher_icons: "^0.13.1"

flutter_launcher_icons:
image_path: "assets/png/app-icon.png"
min_sdk_android: 21 # android min sdk min:16, default 21
linux: true
web:
generate: true
image_path: "assets/png/app-icon.png"
windows:
generate: true
image_path: "assets/png/app-icon.png"
icon_size: 48 # min:48, max:256, default: 48
macos:
generate: true
image_path: "assets/png/app-icon.png"

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Binary file modified sot_richpresence/web/favicon.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 modified sot_richpresence/web/icons/Icon-192.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 modified sot_richpresence/web/icons/Icon-512.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 modified sot_richpresence/web/icons/Icon-maskable-192.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 modified sot_richpresence/web/icons/Icon-maskable-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sot_richpresence/web/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"purpose": "maskable"
}
]
}
}
Binary file modified sot_richpresence/windows/runner/resources/app_icon.ico
Binary file not shown.

0 comments on commit 4c7d9c9

Please sign in to comment.