mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fixed display of round edges in box for giveaway creation.
This commit is contained in:
parent
ad3e447f08
commit
6a43f2e508
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,9 @@ void AddPremiumTopBarWithDefaultTitleBar(
|
|||
object_ptr<Ui::RpWidget>(box));
|
||||
closeTopBar->resize(box->width(), st::boxTitleHeight);
|
||||
closeTopBar->paintRequest(
|
||||
) | rpl::start_with_next([=](const QRect &r) {
|
||||
) | rpl::start_with_next([=] {
|
||||
auto p = Painter(closeTopBar);
|
||||
const auto r = closeTopBar->rect();
|
||||
const auto radius = st::boxRadius;
|
||||
const auto progress = state->animation.value(isCloseBarShown()
|
||||
? 1.
|
||||
|
@ -138,7 +139,6 @@ void AddPremiumTopBarWithDefaultTitleBar(
|
|||
resultRect.width() - hPadding,
|
||||
resultRect.height());
|
||||
p.setClipPath(path);
|
||||
PainterHighQualityEnabler hq(p);
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(st::boxDividerBg);
|
||||
p.drawRoundedRect(resultRect, radius, radius);
|
||||
|
|
Loading…
Add table
Reference in a new issue