diff --git a/assets/custom-icons/_data/custom-icons.json b/assets/custom-icons/_data/custom-icons.json index ee7dac8f6..96cada428 100644 --- a/assets/custom-icons/_data/custom-icons.json +++ b/assets/custom-icons/_data/custom-icons.json @@ -95,6 +95,12 @@ "title": "La Poste", "slug": "laposte" }, + { + "title": "Mastodon", + "altNames": ["mstdn", "fediscience", "mathstodon", "fosstodon"], + "slug": "mastodon", + "hex": "6364FF" + }, { "title": "Microsoft" }, diff --git a/assets/custom-icons/icons/mastodon.svg b/assets/custom-icons/icons/mastodon.svg new file mode 100644 index 000000000..5e3b7e13c --- /dev/null +++ b/assets/custom-icons/icons/mastodon.svg @@ -0,0 +1 @@ +Mastodon \ No newline at end of file diff --git a/assets/simple-icons b/assets/simple-icons index 7e1ad4517..8e7701d6a 160000 --- a/assets/simple-icons +++ b/assets/simple-icons @@ -1 +1 @@ -Subproject commit 7e1ad4517598f36ba625741a4dfbc33610d105d8 +Subproject commit 8e7701d6a40462733043f54b3849faf35af70a83 diff --git a/lib/ui/utils/icon_utils.dart b/lib/ui/utils/icon_utils.dart index 27da8752b..7cb1299ac 100644 --- a/lib/ui/utils/icon_utils.dart +++ b/lib/ui/utils/icon_utils.dart @@ -93,6 +93,14 @@ class IconUtils { icon["slug"], icon["hex"], ); + if (icon["altNames"] != null) { + for (final name in icon["altNames"]) { + _customIcons[name] = CustomIconData( + icon["slug"], + icon["hex"], + ); + } + } } } catch (e) { Logger("IconUtils").severe("Error loading icons", e);