diff --git a/Telegram/Resources/icons/dialogs_bot.png b/Telegram/Resources/icons/dialogs_bot.png new file mode 100644 index 0000000000..1cc7b96f58 Binary files /dev/null and b/Telegram/Resources/icons/dialogs_bot.png differ diff --git a/Telegram/Resources/icons/dialogs_bot@2x.png b/Telegram/Resources/icons/dialogs_bot@2x.png new file mode 100644 index 0000000000..72c543fe54 Binary files /dev/null and b/Telegram/Resources/icons/dialogs_bot@2x.png differ diff --git a/Telegram/Resources/icons/dialogs_bot@3x.png b/Telegram/Resources/icons/dialogs_bot@3x.png new file mode 100644 index 0000000000..df065a3d3f Binary files /dev/null and b/Telegram/Resources/icons/dialogs_bot@3x.png differ diff --git a/Telegram/SourceFiles/dialogs/dialogs.style b/Telegram/SourceFiles/dialogs/dialogs.style index d57ef8c946..15ccc9e395 100644 --- a/Telegram/SourceFiles/dialogs/dialogs.style +++ b/Telegram/SourceFiles/dialogs/dialogs.style @@ -148,6 +148,9 @@ dialogsChatIconActive: icon {{ "dialogs_chat", dialogsChatIconFgActive, point(1p dialogsChannelIcon: icon {{ "dialogs_channel", dialogsChatIconFg, point(3px, 4px) }}; dialogsChannelIconOver: icon {{ "dialogs_channel", dialogsChatIconFgOver, point(3px, 4px) }}; dialogsChannelIconActive: icon {{ "dialogs_channel", dialogsChatIconFgActive, point(3px, 4px) }}; +dialogsBotIcon: icon {{ "dialogs_bot", dialogsChatIconFg, point(1px, 4px) }}; +dialogsBotIconOver: icon {{ "dialogs_bot", dialogsChatIconFgOver, point(1px, 4px) }}; +dialogsBotIconActive: icon {{ "dialogs_bot", dialogsChatIconFgActive, point(1px, 4px) }}; dialogsFeedIcon: icon {{ "dialogs_feed", dialogsChatIconFg, point(4px, 4px) }}; dialogsFeedIconOver: icon {{ "dialogs_feed", dialogsChatIconFgOver, point(4px, 4px) }}; dialogsFeedIconActive: icon {{ "dialogs_feed", dialogsChatIconFgActive, point(4px, 4px) }}; diff --git a/Telegram/SourceFiles/dialogs/dialogs_layout.cpp b/Telegram/SourceFiles/dialogs/dialogs_layout.cpp index 2620f8c116..e51fb8612c 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_layout.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_layout.cpp @@ -433,6 +433,14 @@ const style::icon *ChatTypeIcon( : (selected ? st::dialogsChannelIconOver : st::dialogsChannelIcon)); + } else if (const auto user = peer->asUser()) { + if (user->isBot()) { + return &(active + ? st::dialogsBotIconActive + : (selected + ? st::dialogsBotIconOver + : st::dialogsBotIcon)); + } } return nullptr; }