mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Remove 'SOON' badge for tradable feature.
This commit is contained in:
parent
7756cce123
commit
05c3e968df
1 changed files with 2 additions and 14 deletions
|
@ -2577,8 +2577,7 @@ void UpgradeBox(
|
||||||
const auto infoRow = [&](
|
const auto infoRow = [&](
|
||||||
rpl::producer<QString> title,
|
rpl::producer<QString> title,
|
||||||
rpl::producer<QString> text,
|
rpl::producer<QString> text,
|
||||||
not_null<const style::icon*> icon,
|
not_null<const style::icon*> icon) {
|
||||||
bool newBadge = false) {
|
|
||||||
auto raw = container->add(
|
auto raw = container->add(
|
||||||
object_ptr<Ui::VerticalLayout>(container));
|
object_ptr<Ui::VerticalLayout>(container));
|
||||||
const auto widget = raw->add(
|
const auto widget = raw->add(
|
||||||
|
@ -2587,16 +2586,6 @@ void UpgradeBox(
|
||||||
std::move(title) | Ui::Text::ToBold(),
|
std::move(title) | Ui::Text::ToBold(),
|
||||||
st::defaultFlatLabel),
|
st::defaultFlatLabel),
|
||||||
st::settingsPremiumRowTitlePadding);
|
st::settingsPremiumRowTitlePadding);
|
||||||
if (newBadge) {
|
|
||||||
const auto badge = NewBadge::CreateNewBadge(
|
|
||||||
raw,
|
|
||||||
tr::lng_soon_badge(Ui::Text::Upper));
|
|
||||||
widget->geometryValue(
|
|
||||||
) | rpl::start_with_next([=](QRect geometry) {
|
|
||||||
badge->move(st::settingsPremiumNewBadgePosition
|
|
||||||
+ QPoint(widget->x() + widget->width(), widget->y()));
|
|
||||||
}, badge->lifetime());
|
|
||||||
}
|
|
||||||
raw->add(
|
raw->add(
|
||||||
object_ptr<Ui::FlatLabel>(
|
object_ptr<Ui::FlatLabel>(
|
||||||
raw,
|
raw,
|
||||||
|
@ -2620,8 +2609,7 @@ void UpgradeBox(
|
||||||
infoRow(
|
infoRow(
|
||||||
tr::lng_gift_upgrade_tradable_title(),
|
tr::lng_gift_upgrade_tradable_title(),
|
||||||
tr::lng_gift_upgrade_tradable_about(),
|
tr::lng_gift_upgrade_tradable_about(),
|
||||||
&st::menuIconTradable,
|
&st::menuIconTradable);
|
||||||
true);
|
|
||||||
|
|
||||||
struct State {
|
struct State {
|
||||||
bool sent = false;
|
bool sent = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue