2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Support new rounding in bot inline keyboards.

This commit is contained in:
John Preston
2022-10-03 15:11:05 +04:00
parent 9cab06e17d
commit e5f2d83548
58 changed files with 498 additions and 305 deletions

View File

@@ -277,14 +277,13 @@ struct ForwardedTooltip {
{ line, line, line, line + arrowSize });
const auto origin = full.topLeft();
const auto rounded = std::make_shared<Ui::RoundRect>(
ImageRoundRadius::Large,
st::toastBg);
const auto paint = [=](QPainter &p) {
p.translate(-origin);
Ui::FillRoundRect(
p,
geometry,
st::toastBg,
ImageRoundRadius::Large);
rounded->paint(p, geometry);
p.setFont(font);
p.setPen(st::toastFg);