Fixed text color of custom icon in some phrases with links.

This commit is contained in:
23rd 2024-12-18 15:01:57 +03:00
parent 6d1e421ad7
commit c3f354826d
7 changed files with 8 additions and 8 deletions

View file

@ -90,7 +90,7 @@ void GiftCreditsBox(
peer->owner().customEmojiManager().registerInternalEmoji( peer->owner().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
auto link = tr::lng_credits_box_history_entry_gift_about_link( auto link = tr::lng_credits_box_history_entry_gift_about_link(
lt_emoji, lt_emoji,
rpl::single(arrow), rpl::single(arrow),

View file

@ -417,7 +417,7 @@ void InnerWidget::fill() {
session->data().customEmojiManager().registerInternalEmoji( session->data().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
const auto addAboutWithLearn = [&](const tr::phrase<lngtag_link> &text) { const auto addAboutWithLearn = [&](const tr::phrase<lngtag_link> &text) {
auto label = Ui::CreateLabelWithCustomEmoji( auto label = Ui::CreateLabelWithCustomEmoji(
container, container,

View file

@ -383,7 +383,7 @@ void FillBotUsepic(
bot->owner().customEmojiManager().registerInternalEmoji( bot->owner().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
auto aboutLabel = Ui::CreateLabelWithCustomEmoji( auto aboutLabel = Ui::CreateLabelWithCustomEmoji(
box->verticalLayout(), box->verticalLayout(),
tr::lng_allow_bot_webview_details( tr::lng_allow_bot_webview_details(

View file

@ -195,7 +195,7 @@ void AboutBox(
session->data().customEmojiManager().registerInternalEmoji( session->data().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
const auto available = box->width() const auto available = box->width()
- rect::m::sum::h(st::boxRowPadding); - rect::m::sum::h(st::boxRowPadding);
box->addRow( box->addRow(

View file

@ -513,7 +513,7 @@ void Business::setupContent() {
session->data().customEmojiManager().registerInternalEmoji( session->data().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
inner->add(object_ptr<Ui::DividerLabel>( inner->add(object_ptr<Ui::DividerLabel>(
inner, inner,
Ui::CreateLabelWithCustomEmoji( Ui::CreateLabelWithCustomEmoji(

View file

@ -1205,7 +1205,7 @@ void ReceiptCreditsBox(
session->data().customEmojiManager().registerInternalEmoji( session->data().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
auto link = tr::lng_credits_box_history_entry_gift_about_link( auto link = tr::lng_credits_box_history_entry_gift_about_link(
lt_emoji, lt_emoji,
rpl::single(arrow), rpl::single(arrow),
@ -2157,7 +2157,7 @@ void AddWithdrawalWidget(
session->data().customEmojiManager().registerInternalEmoji( session->data().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
auto about = Ui::CreateLabelWithCustomEmoji( auto about = Ui::CreateLabelWithCustomEmoji(
container, container,
tr::lng_bot_earn_learn_credits_out_about( tr::lng_bot_earn_learn_credits_out_about(

View file

@ -132,7 +132,7 @@ InviteLinkSubscriptionToggle FillCreateInviteLinkSubscriptionToggle(
peer->owner().customEmojiManager().registerInternalEmoji( peer->owner().customEmojiManager().registerInternalEmoji(
st::topicButtonArrow, st::topicButtonArrow,
st::channelEarnLearnArrowMargins, st::channelEarnLearnArrowMargins,
false)); true));
auto about = Ui::CreateLabelWithCustomEmoji( auto about = Ui::CreateLabelWithCustomEmoji(
container, container,
tr::lng_group_invite_subscription_about( tr::lng_group_invite_subscription_about(