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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user