mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Added gradient color to icon of premium settings.
This commit is contained in:
parent
735f1d5b03
commit
e09b624b84
1 changed files with 16 additions and 4 deletions
|
@ -340,10 +340,22 @@ void SetupSections(
|
|||
AddDivider(container);
|
||||
AddSkip(container);
|
||||
|
||||
addSection(
|
||||
tr::lng_premium_summary_title(),
|
||||
PremiumId(),
|
||||
{ &st::settingsPremiumIconStar, kIconLightBlue });
|
||||
{
|
||||
const auto icon = &st::settingsPremiumIconStar;
|
||||
auto gradient = QLinearGradient(
|
||||
0,
|
||||
icon->height(),
|
||||
icon->width() + icon->width() / 3,
|
||||
0 - icon->height() / 3);
|
||||
gradient.setStops(QGradientStops{
|
||||
{ 0.0, st::premiumButtonBg1->c },
|
||||
{ 1.0, st::premiumButtonBg3->c },
|
||||
});
|
||||
addSection(
|
||||
tr::lng_premium_summary_title(),
|
||||
PremiumId(),
|
||||
{ .icon = icon, .backgroundBrush = QBrush(gradient) });
|
||||
}
|
||||
|
||||
AddSkip(container);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue