Added specific color for blue currency icon.

This commit is contained in:
23rd 2025-06-30 11:22:08 +03:00
parent a293fa1de6
commit 7b870edefa
5 changed files with 9 additions and 9 deletions

View file

@ -334,7 +334,7 @@ void ChooseSuggestPriceBox(
manager->registerInternalEmoji(
Ui::Earn::IconCurrencyColored(
st::tonFieldIconSize,
st::windowActiveTextFg->c),
st::currencyFg->c),
st::channelEarnCurrencyCommonMargins,
false)));
@ -506,7 +506,7 @@ void ChooseSuggestPriceBox(
manager->registerInternalEmoji(
Ui::Earn::IconCurrencyColored(
st::tonFieldIconSize,
st::windowActiveTextFg->c),
st::currencyFg->c),
st::suggestPriceTonIconMargins));
button->setContext(Core::TextContext({ .session = &peer->session() }));
button->setText(state->price.value(
@ -732,7 +732,7 @@ TextWithEntities SuggestOptions::composeText() const {
manager->registerInternalEmoji(
Ui::Earn::IconCurrencyColored(
st::suggestBarTonIconSize,
st::windowActiveTextFg->c),
st::currencyFg->c),
st::suggestBarTonIconMargins,
false)).append(
Lang::FormatCreditsAmountDecimal(_values.price()))

View file

@ -423,7 +423,7 @@ void InnerWidget::fill() {
Ui::Earn::IconCurrencyColored(
st.style.font,
!isIn
? st::activeButtonBg->c
? st::currencyFg->c
: (*isIn)
? st::boxTextFgGood->c
: st::menuIconAttentionColor->c),
@ -447,7 +447,7 @@ void InnerWidget::fill() {
session->data().customEmojiManager().registerInternalEmoji(
Ui::Earn::IconCurrencyColored(
st::boxTitle.style.font,
st::activeButtonBg->c),
st::currencyFg->c),
st::channelEarnCurrencyLearnMargins,
false));

View file

@ -119,7 +119,7 @@ Credits::Credits(
, _balanceStar((_creditsType == CreditsType::Ton)
? Ui::Earn::IconCurrencyColored(
st::tonFieldIconSize,
st::windowActiveTextFg->c)
st::currencyFg->c)
: Ui::GenerateStars(st::creditsBalanceStarHeight, 1)) {
_controller->session().giftBoxStickersPacks().load(
Stickers::GiftBoxPack::Type::Currency);
@ -494,7 +494,7 @@ void Credits::setupContent() {
? std::make_unique<Ui::Text::StaticCustomEmoji>(
Ui::Earn::IconCurrencyColored(
st::tonFieldIconSize,
st::windowActiveTextFg->c),
st::currencyFg->c),
u"currency_icon:%1"_q.arg(height))
: Ui::MakeCreditsIconEmoji(height, 1),
isCurrency

View file

@ -724,7 +724,7 @@ not_null<Ui::RpWidget*> AddBalanceWidget(
manager->registerInternalEmoji(
Ui::Earn::IconCurrencyColored(
st::tonFieldIconSize,
st::windowActiveTextFg->c),
st::currencyFg->c),
st::channelEarnCurrencyLearnMargins,
false))
).append(' ').append(Lang::FormatCreditsAmountDecimal(value));

@ -1 +1 @@
Subproject commit c805b35452a82c606ad7c4ebafc6cb2611485062
Subproject commit 0b7933ad1189076233b69fac0a5a475d2a5deb8b