mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added specific color for blue currency icon.
This commit is contained in:
@@ -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()))
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
Submodule Telegram/lib_ui updated: c805b35452...0b7933ad11
Reference in New Issue
Block a user