mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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));
|
object_ptr<Ui::RpWidget>(box));
|
||||||
closeTopBar->resize(box->width(), st::boxTitleHeight);
|
closeTopBar->resize(box->width(), st::boxTitleHeight);
|
||||||
closeTopBar->paintRequest(
|
closeTopBar->paintRequest(
|
||||||
) | rpl::start_with_next([=](const QRect &r) {
|
) | rpl::start_with_next([=] {
|
||||||
auto p = Painter(closeTopBar);
|
auto p = Painter(closeTopBar);
|
||||||
|
const auto r = closeTopBar->rect();
|
||||||
const auto radius = st::boxRadius;
|
const auto radius = st::boxRadius;
|
||||||
const auto progress = state->animation.value(isCloseBarShown()
|
const auto progress = state->animation.value(isCloseBarShown()
|
||||||
? 1.
|
? 1.
|
||||||
|
@ -138,7 +139,6 @@ void AddPremiumTopBarWithDefaultTitleBar(
|
||||||
resultRect.width() - hPadding,
|
resultRect.width() - hPadding,
|
||||||
resultRect.height());
|
resultRect.height());
|
||||||
p.setClipPath(path);
|
p.setClipPath(path);
|
||||||
PainterHighQualityEnabler hq(p);
|
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
p.setBrush(st::boxDividerBg);
|
p.setBrush(st::boxDividerBg);
|
||||||
p.drawRoundedRect(resultRect, radius, radius);
|
p.drawRoundedRect(resultRect, radius, radius);
|
||||||
|
|
Loading…
Add table
Reference in a new issue