mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
chore: reformat emote initializer
This commit is contained in:
parent
c7512dc734
commit
6d376b5416
|
@ -383,13 +383,14 @@ EmotePtr makeAutoModBadge()
|
||||||
|
|
||||||
EmotePtr makeSharedChatBadge(const QString &sourceName)
|
EmotePtr makeSharedChatBadge(const QString &sourceName)
|
||||||
{
|
{
|
||||||
return std::make_shared<Emote>(
|
return std::make_shared<Emote>(Emote{
|
||||||
Emote{EmoteName{},
|
.name = EmoteName{},
|
||||||
ImageSet{Image::fromResourcePixmap(
|
.images = ImageSet{Image::fromResourcePixmap(
|
||||||
getResources().twitch.sharedChat, 0.25)},
|
getResources().twitch.sharedChat, 0.25)},
|
||||||
Tooltip{"Shared Message" +
|
.tooltip = Tooltip{"Shared Message" +
|
||||||
(sourceName.isEmpty() ? "" : " from " + sourceName)},
|
(sourceName.isEmpty() ? "" : " from " + sourceName)},
|
||||||
Url{"https://link.twitch.tv/SharedChatViewer"}});
|
.homePage = Url{"https://link.twitch.tv/SharedChatViewer"},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
std::tuple<std::optional<EmotePtr>, MessageElementFlags, bool> parseEmote(
|
std::tuple<std::optional<EmotePtr>, MessageElementFlags, bool> parseEmote(
|
||||||
|
|
Loading…
Reference in a new issue