Add payment button icon to the corner.
BIN
Telegram/Resources/icons/inline_button_card.png
Normal file
After ![]() (image error) Size: 213 B |
BIN
Telegram/Resources/icons/inline_button_card@2x.png
Normal file
After ![]() (image error) Size: 249 B |
BIN
Telegram/Resources/icons/inline_button_card@3x.png
Normal file
After ![]() (image error) Size: 300 B |
Before ![]() (image error) Size: 228 B After ![]() (image error) Size: 338 B ![]() ![]() |
Before ![]() (image error) Size: 341 B After ![]() (image error) Size: 569 B ![]() ![]() |
Before ![]() (image error) Size: 427 B After ![]() (image error) Size: 768 B ![]() ![]() |
Before ![]() (image error) Size: 146 B After ![]() (image error) Size: 305 B ![]() ![]() |
Before ![]() (image error) Size: 234 B After ![]() (image error) Size: 428 B ![]() ![]() |
Before ![]() (image error) Size: 273 B After ![]() (image error) Size: 550 B ![]() ![]() |
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|