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

View file

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

View file

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

View file

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

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