diff --git a/Telegram/Resources/icons/inline_button_card.png b/Telegram/Resources/icons/inline_button_card.png new file mode 100644 index 000000000..ce28e2188 Binary files /dev/null and b/Telegram/Resources/icons/inline_button_card.png differ diff --git a/Telegram/Resources/icons/inline_button_card@2x.png b/Telegram/Resources/icons/inline_button_card@2x.png new file mode 100644 index 000000000..6c550d573 Binary files /dev/null and b/Telegram/Resources/icons/inline_button_card@2x.png differ diff --git a/Telegram/Resources/icons/inline_button_card@3x.png b/Telegram/Resources/icons/inline_button_card@3x.png new file mode 100644 index 000000000..0e4758882 Binary files /dev/null and b/Telegram/Resources/icons/inline_button_card@3x.png differ diff --git a/Telegram/Resources/icons/inline_button_switch.png b/Telegram/Resources/icons/inline_button_switch.png index 04c858512..af74ace51 100644 Binary files a/Telegram/Resources/icons/inline_button_switch.png and b/Telegram/Resources/icons/inline_button_switch.png differ diff --git a/Telegram/Resources/icons/inline_button_switch@2x.png b/Telegram/Resources/icons/inline_button_switch@2x.png index 9d805c979..72b7fd4d3 100644 Binary files a/Telegram/Resources/icons/inline_button_switch@2x.png and b/Telegram/Resources/icons/inline_button_switch@2x.png differ diff --git a/Telegram/Resources/icons/inline_button_switch@3x.png b/Telegram/Resources/icons/inline_button_switch@3x.png index 428d328c2..3a5c4f043 100644 Binary files a/Telegram/Resources/icons/inline_button_switch@3x.png and b/Telegram/Resources/icons/inline_button_switch@3x.png differ diff --git a/Telegram/Resources/icons/inline_button_url.png b/Telegram/Resources/icons/inline_button_url.png index 986d15cda..33b1061d1 100644 Binary files a/Telegram/Resources/icons/inline_button_url.png and b/Telegram/Resources/icons/inline_button_url.png differ diff --git a/Telegram/Resources/icons/inline_button_url@2x.png b/Telegram/Resources/icons/inline_button_url@2x.png index 0b364c03c..b0579663b 100644 Binary files a/Telegram/Resources/icons/inline_button_url@2x.png and b/Telegram/Resources/icons/inline_button_url@2x.png differ diff --git a/Telegram/Resources/icons/inline_button_url@3x.png b/Telegram/Resources/icons/inline_button_url@3x.png index 801baba44..d6887d45a 100644 Binary files a/Telegram/Resources/icons/inline_button_url@3x.png and b/Telegram/Resources/icons/inline_button_url@3x.png differ diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index 499ab2771..1b943d13d 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -102,6 +102,7 @@ void KeyboardStyle::paintButtonIcon( switch (type) { case Type::Url: case Type::Auth: return &st::msgBotKbUrlIcon; + case Type::Buy: return &st::msgBotKbPaymentIcon; case Type::SwitchInlineSame: case Type::SwitchInline: return &st::msgBotKbSwitchPmIcon; } @@ -124,6 +125,7 @@ int KeyboardStyle::minButtonWidth( switch (type) { case Type::Url: case Type::Auth: iconWidth = st::msgBotKbUrlIcon.width(); break; + case Type::Buy: iconWidth = st::msgBotKbPaymentIcon.width(); break; case Type::SwitchInlineSame: case Type::SwitchInline: iconWidth = st::msgBotKbSwitchPmIcon.width(); break; case Type::Callback: diff --git a/Telegram/SourceFiles/ui/chat/chat.style b/Telegram/SourceFiles/ui/chat/chat.style index 623148737..a89ff17e7 100644 --- a/Telegram/SourceFiles/ui/chat/chat.style +++ b/Telegram/SourceFiles/ui/chat/chat.style @@ -463,6 +463,7 @@ msgBotKbFont: semiboldFont; msgBotKbIconPadding: 2px; msgBotKbUrlIcon: icon {{ "inline_button_url", msgBotKbIconFg }}; msgBotKbSwitchPmIcon: icon {{ "inline_button_switch", msgBotKbIconFg }}; +msgBotKbPaymentIcon: icon {{ "inline_button_card", msgBotKbIconFg }}; msgBotKbButton: BotKeyboardButton { margin: 5px; padding: 10px;