diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp index 72c15bac6d..5f813d2b79 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp @@ -2424,13 +2424,13 @@ void EditPeerColorBox( const auto profileButton = Ui::CreateChild( buttonContainer, tr::lng_settings_color_apply(), - box->getDelegate()->style().button, - Ui::RoundButtonTextToUpper); + box->getDelegate()->style().button); + profileButton->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto nameButton = Ui::CreateChild( buttonContainer, tr::lng_settings_color_apply(), - box->getDelegate()->style().button, - Ui::RoundButtonTextToUpper); + box->getDelegate()->style().button); + nameButton->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); rpl::combine( buttonContainer->widthValue(), profileButton->sizeValue(), diff --git a/Telegram/SourceFiles/calls/group/ui/desktop_capture_choose_source.cpp b/Telegram/SourceFiles/calls/group/ui/desktop_capture_choose_source.cpp index dcd402f419..542c4246cd 100644 --- a/Telegram/SourceFiles/calls/group/ui/desktop_capture_choose_source.cpp +++ b/Telegram/SourceFiles/calls/group/ui/desktop_capture_choose_source.cpp @@ -260,20 +260,20 @@ ChooseSourceProcess::ChooseSourceProcess( CreateChild( _bottom.get(), tr::lng_group_call_screen_share_start(), - st::desktopCaptureSubmit, - RoundButtonTextToUpper)) + st::desktopCaptureSubmit)) , _finish( CreateChild( _bottom.get(), tr::lng_group_call_screen_share_stop(), - st::desktopCaptureFinish, - RoundButtonTextToUpper)) + st::desktopCaptureFinish)) , _withAudio( CreateChild( _bottom.get(), tr::lng_group_call_screen_share_audio(tr::now), false, st::desktopCaptureWithAudio)) { + _submit->setTextTransform(RoundButtonTextTransform::ToUpper); + _finish->setTextTransform(RoundButtonTextTransform::ToUpper); setupPanel(); setupSources(); activate(); @@ -371,8 +371,8 @@ void ChooseSourceProcess::setupPanel() { const auto cancel = CreateChild( _bottom.get(), tr::lng_cancel(), - st::desktopCaptureCancel, - RoundButtonTextToUpper); + st::desktopCaptureCancel); + cancel->setTextTransform(RoundButtonTextTransform::ToUpper); cancel->setClickedCallback([=] { _window->close(); }); diff --git a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp index 56a6f0973e..6545f70d32 100644 --- a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp @@ -117,10 +117,10 @@ TopBarWidget::TopBarWidget( : RpWidget(parent) , _controller(controller) , _primaryWindow(controller->isPrimary()) -, _clear(this, tr::lng_selected_clear(), st::topBarClearButton, Ui::RoundButtonTextToUpper) -, _forward(this, tr::lng_selected_forward(), st::defaultActiveButton, Ui::RoundButtonTextToUpper) -, _sendNow(this, tr::lng_selected_send_now(), st::defaultActiveButton, Ui::RoundButtonTextToUpper) -, _delete(this, tr::lng_selected_delete(), st::defaultActiveButton, Ui::RoundButtonTextToUpper) +, _clear(this, tr::lng_selected_clear(), st::topBarClearButton) +, _forward(this, tr::lng_selected_forward(), st::defaultActiveButton) +, _sendNow(this, tr::lng_selected_send_now(), st::defaultActiveButton) +, _delete(this, tr::lng_selected_delete(), st::defaultActiveButton) , _back(this, st::historyTopBarBack) , _cancelChoose(this, st::topBarCloseChoose) , _call(this, st::topBarCall) @@ -132,6 +132,11 @@ TopBarWidget::TopBarWidget( , _onlineUpdater([=] { updateOnlineDisplay(); }) { setAttribute(Qt::WA_OpaquePaintEvent); + _clear->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); + _forward->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); + _sendNow->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); + _delete->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); + Lang::Updated( ) | rpl::on_next([=] { refreshLang(); diff --git a/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp b/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp index af6b57b99e..c85728ced9 100644 --- a/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp +++ b/Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp @@ -447,9 +447,9 @@ private: auto result = object_ptr( parent, rpl::single(QString()), - st::starrefBottomButton, - Ui::RoundButtonTextToUpper); + st::starrefBottomButton); const auto raw = result.data(); + raw->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); rpl::combine( parent->widthValue(), raw->widthValue() diff --git a/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp b/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp index 84a3b86eb6..6614ac66ab 100644 --- a/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp +++ b/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp @@ -144,9 +144,9 @@ void AddRecipient(not_null box, const TextWithEntities &t) { object_ptr( box, rpl::single(QString()), - st::channelEarnHistoryRecipientButton, - Ui::RoundButtonTextToUpper), + st::channelEarnHistoryRecipientButton), style::al_top); + container->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto label = Ui::CreateChild( container, rpl::single(t), @@ -883,10 +883,10 @@ void InnerWidget::fill() { object_ptr( container, rpl::never(), - stButton, - Ui::RoundButtonTextToUpper), + stButton), st::boxRowPadding, style::al_justify); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto label = Ui::CreateChild( button, @@ -1236,8 +1236,8 @@ void InnerWidget::fill() { (!entry.successLink.isEmpty()) ? tr::lng_channel_earn_history_out_button() : tr::lng_box_ok(), - st::defaultActiveButton, - Ui::RoundButtonTextToUpper); + st::defaultActiveButton); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); button->resizeToWidth(box->width() - st.buttonPadding.left() - st.buttonPadding.left()); diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index ad5c68892f..198ced0d59 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -394,10 +394,10 @@ base::options::toggle ShowChannelJoinedBelowAbout({ object_ptr( parent, rpl::single(QString()), - st::infoHoursOuter, - Ui::RoundButtonTextToUpper), + st::infoHoursOuter), st::infoProfileLabeledPadding - st::infoHoursOuterMargin); const auto button = result->entity(); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto inner = Ui::CreateChild(button); button->widthValue() | rpl::on_next([=](int width) { const auto margin = st::infoHoursOuterMargin; @@ -882,11 +882,11 @@ void DeleteContactNote( object_ptr( parent, rpl::single(QString()), - st::infoHoursOuter, - Ui::RoundButtonTextToUpper), + st::infoHoursOuter), st::infoProfileLabeledPadding - st::infoHoursOuterMargin); result->setDuration(st::infoSlideDuration); const auto button = result->entity(); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); auto outer = Ui::CreateChild>( button, diff --git a/Telegram/SourceFiles/info/similar_peers/info_similar_peers_widget.cpp b/Telegram/SourceFiles/info/similar_peers/info_similar_peers_widget.cpp index f91aacf6ff..ad7d45248c 100644 --- a/Telegram/SourceFiles/info/similar_peers/info_similar_peers_widget.cpp +++ b/Telegram/SourceFiles/info/similar_peers/info_similar_peers_widget.cpp @@ -156,8 +156,8 @@ void ListController::setupUnlock() { ? tr::lng_similar_channels_show_more() : tr::lng_similar_bots_show_more()), st::similarChannelsLock, - rpl::single(true), - Ui::RoundButtonTextToUpper); + rpl::single(true)); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); button->setClickedCallback([=] { const auto window = _controller->parentController(); ::Settings::ShowPremium(window, u"similar_channels"_q); diff --git a/Telegram/SourceFiles/intro/intro_widget.cpp b/Telegram/SourceFiles/intro/intro_widget.cpp index 4684a608c0..7b2448b258 100644 --- a/Telegram/SourceFiles/intro/intro_widget.cpp +++ b/Telegram/SourceFiles/intro/intro_widget.cpp @@ -84,8 +84,7 @@ Widget::Widget( object_ptr( this, tr::lng_menu_settings(), - st::defaultBoxButton, - Ui::RoundButtonTextToUpper)) + st::defaultBoxButton)) , _next( this, object_ptr(this, nullptr, *_nextStyle)) @@ -93,6 +92,7 @@ Widget::Widget( this, account, rpl::single(true))) { + _settings->entity()->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); controller->setDefaultFloatPlayerDelegate(floatPlayerDelegate()); getData()->country = ComputeNewAccountCountry(); @@ -319,8 +319,8 @@ void Widget::checkUpdateStatus() { object_ptr( this, tr::lng_menu_update(), - st::defaultBoxButton, - Ui::RoundButtonTextToUpper)); + st::defaultBoxButton)); + _update->entity()->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); if (!_showAnimation) { _update->setVisible(true); } @@ -494,8 +494,8 @@ void Widget::showResetButton() { auto entity = object_ptr( this, tr::lng_signin_reset_account(), - st::introResetButton, - Ui::RoundButtonTextToUpper); + st::introResetButton); + entity->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); _resetAccount.create(this, std::move(entity)); _resetAccount->hide(anim::type::instant); _resetAccount->entity()->setClickedCallback([this] { resetAccount(); }); diff --git a/Telegram/SourceFiles/media/stories/media_stories_stealth.cpp b/Telegram/SourceFiles/media/stories/media_stories_stealth.cpp index 494d0cd1d0..10c4c05ef4 100644 --- a/Telegram/SourceFiles/media/stories/media_stories_stealth.cpp +++ b/Telegram/SourceFiles/media/stories/media_stories_stealth.cpp @@ -240,9 +240,9 @@ struct State { auto result = object_ptr( parent, rpl::single(QString()), - st.box.button, - Ui::RoundButtonTextToUpper); + st.box.button); const auto raw = result.data(); + raw->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto label = Ui::CreateChild( raw, diff --git a/Telegram/SourceFiles/menu/menu_sponsored.cpp b/Telegram/SourceFiles/menu/menu_sponsored.cpp index debcbeac8b..49d723102b 100644 --- a/Telegram/SourceFiles/menu/menu_sponsored.cpp +++ b/Telegram/SourceFiles/menu/menu_sponsored.cpp @@ -248,8 +248,8 @@ void AboutBox( auto button = object_ptr( box, tr::lng_box_ok(), - st::defaultActiveButton, - Ui::RoundButtonTextToUpper); + st::defaultActiveButton); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); button->resizeToWidth(box->width() - st.buttonPadding.left() - st.buttonPadding.left()); diff --git a/Telegram/SourceFiles/passport/passport_panel_edit_contact.cpp b/Telegram/SourceFiles/passport/passport_panel_edit_contact.cpp index ca4e4989a7..4fb39508f8 100644 --- a/Telegram/SourceFiles/passport/passport_panel_edit_contact.cpp +++ b/Telegram/SourceFiles/passport/passport_panel_edit_contact.cpp @@ -235,8 +235,8 @@ PanelEditContact::PanelEditContact( , _done( this, tr::lng_passport_save_value(), - st::passportPanelSaveValue, - Ui::RoundButtonTextToUpper) { + st::passportPanelSaveValue) { + _done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); setupControls(data, existing); } diff --git a/Telegram/SourceFiles/passport/passport_panel_edit_document.cpp b/Telegram/SourceFiles/passport/passport_panel_edit_document.cpp index 830a497b0a..686d280ad2 100644 --- a/Telegram/SourceFiles/passport/passport_panel_edit_document.cpp +++ b/Telegram/SourceFiles/passport/passport_panel_edit_document.cpp @@ -221,8 +221,8 @@ PanelEditDocument::PanelEditDocument( , _done( this, tr::lng_passport_save_value(), - st::passportPanelSaveValue, - Ui::RoundButtonTextToUpper) { + st::passportPanelSaveValue) { + _done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); setupControls( &error, &data, @@ -248,8 +248,8 @@ PanelEditDocument::PanelEditDocument( , _done( this, tr::lng_passport_save_value(), - st::passportPanelSaveValue, - Ui::RoundButtonTextToUpper) { + st::passportPanelSaveValue) { + _done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); setupControls( nullptr, nullptr, @@ -272,8 +272,8 @@ PanelEditDocument::PanelEditDocument( , _done( this, tr::lng_passport_save_value(), - st::passportPanelSaveValue, - Ui::RoundButtonTextToUpper) { + st::passportPanelSaveValue) { + _done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); setupControls(&error, &data, nullptr, nullptr, {}, {}, {}); } diff --git a/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp b/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp index 6d43841ee1..503cb74418 100644 --- a/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp +++ b/Telegram/SourceFiles/passport/passport_panel_edit_scans.cpp @@ -326,8 +326,8 @@ ScanButton::ScanButton( object_ptr( this, tr::lng_passport_delete_scan_undo(), - _st.restore, - Ui::RoundButtonTextToUpper)) { + _st.restore)) { + _restore->entity()->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); _delete->toggle(!deleted, anim::type::instant); _restore->toggle(deleted, anim::type::instant); } diff --git a/Telegram/SourceFiles/passport/passport_panel_form.cpp b/Telegram/SourceFiles/passport/passport_panel_form.cpp index 5ddb2f1aef..a1dd34c22c 100644 --- a/Telegram/SourceFiles/passport/passport_panel_form.cpp +++ b/Telegram/SourceFiles/passport/passport_panel_form.cpp @@ -40,8 +40,8 @@ PanelForm::PanelForm( , _submit( this, tr::lng_passport_authorize(), - st::passportPanelAuthorize, - Ui::RoundButtonTextToUpper) { + st::passportPanelAuthorize) { + _submit->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); setupControls(); } diff --git a/Telegram/SourceFiles/passport/passport_panel_password.cpp b/Telegram/SourceFiles/passport/passport_panel_password.cpp index c44a385790..58b4ff3a2b 100644 --- a/Telegram/SourceFiles/passport/passport_panel_password.cpp +++ b/Telegram/SourceFiles/passport/passport_panel_password.cpp @@ -47,8 +47,9 @@ PanelAskPassword::PanelAskPassword( this, st::defaultInputField, tr::lng_passport_password_placeholder()) -, _submit(this, tr::lng_passport_next(), st::passportPasswordSubmit, Ui::RoundButtonTextToUpper) +, _submit(this, tr::lng_passport_next(), st::passportPasswordSubmit) , _forgot(this, tr::lng_signin_recover(tr::now), st::defaultLinkButton) { + _submit->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); connect(_password, &Ui::PasswordInput::submitted, this, [=] { submit(); }); @@ -227,9 +228,9 @@ void PanelNoPassword::refreshBottom() { object_ptr( _inner, tr::lng_passport_password_create(), - st::defaultBoxButton, - Ui::RoundButtonTextToUpper), + st::defaultBoxButton), style::al_top); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); button->addClickHandler([=] { _controller->setupPassword(); }); diff --git a/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp b/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp index 05e93e9e7d..0c2aac434e 100644 --- a/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp @@ -216,13 +216,13 @@ EditCard::EditCard( , _submit( this, tr::lng_about_done(), - st::paymentsPanelButton, - RoundButtonTextToUpper) + st::paymentsPanelButton) , _cancel( this, tr::lng_cancel(), - st::paymentsPanelButton, - RoundButtonTextToUpper) { + st::paymentsPanelButton) { + _submit->setTextTransform(RoundButtonTextTransform::ToUpper); + _cancel->setTextTransform(RoundButtonTextTransform::ToUpper); setupControls(); } diff --git a/Telegram/SourceFiles/payments/ui/payments_edit_information.cpp b/Telegram/SourceFiles/payments/ui/payments_edit_information.cpp index fe5c8261cb..aa409b72c2 100644 --- a/Telegram/SourceFiles/payments/ui/payments_edit_information.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_edit_information.cpp @@ -47,13 +47,13 @@ EditInformation::EditInformation( , _submit( this, tr::lng_settings_save(), - st::paymentsPanelButton, - RoundButtonTextToUpper) + st::paymentsPanelButton) , _cancel( this, tr::lng_cancel(), - st::paymentsPanelButton, - RoundButtonTextToUpper) { + st::paymentsPanelButton) { + _submit->setTextTransform(RoundButtonTextTransform::ToUpper); + _cancel->setTextTransform(RoundButtonTextTransform::ToUpper); setupControls(); } diff --git a/Telegram/SourceFiles/settings/sections/settings_credits.cpp b/Telegram/SourceFiles/settings/sections/settings_credits.cpp index f8be46fcf1..c2d1c009a2 100644 --- a/Telegram/SourceFiles/settings/sections/settings_credits.cpp +++ b/Telegram/SourceFiles/settings/sections/settings_credits.cpp @@ -865,10 +865,10 @@ void BuildCurrencyWithdrawalSection( object_ptr( container, rpl::never(), - stButton, - Ui::RoundButtonTextToUpper), + stButton), st::boxRowPadding, style::al_top); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto label = Ui::CreateChild( button, diff --git a/Telegram/SourceFiles/settings/sections/settings_premium.cpp b/Telegram/SourceFiles/settings/sections/settings_premium.cpp index 8d0a068139..b3f606f975 100644 --- a/Telegram/SourceFiles/settings/sections/settings_premium.cpp +++ b/Telegram/SourceFiles/settings/sections/settings_premium.cpp @@ -1937,13 +1937,11 @@ not_null CreateLockedButton( not_null parent, rpl::producer text, const style::RoundButton &st, - rpl::producer locked, - Ui::RoundButtonTextTransform transform) { + rpl::producer locked) { const auto result = Ui::CreateChild( parent.get(), rpl::single(QString()), - st, - transform); + st); const auto labelSt = result->lifetime().make_state( st::defaultFlatLabel); diff --git a/Telegram/SourceFiles/settings/sections/settings_premium.h b/Telegram/SourceFiles/settings/sections/settings_premium.h index 557d6cedef..894e07c352 100644 --- a/Telegram/SourceFiles/settings/sections/settings_premium.h +++ b/Telegram/SourceFiles/settings/sections/settings_premium.h @@ -17,10 +17,6 @@ namespace style { struct RoundButton; } // namespace style -namespace Ui { -enum class RoundButtonTextTransform : uchar; -} // namespace Ui - namespace ChatHelpers { class Show; } // namespace ChatHelpers @@ -97,8 +93,7 @@ struct SubscribeButtonArgs final { not_null parent, rpl::producer text, const style::RoundButton &st, - rpl::producer locked, - Ui::RoundButtonTextTransform transform = Ui::RoundButtonTextTransform{}); + rpl::producer locked); [[nodiscard]] not_null CreateSubscribeButton( SubscribeButtonArgs &&args); diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp index f507df9a11..9ac4584e40 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp @@ -3340,8 +3340,8 @@ void AddWithdrawalWidget( const auto button = Ui::CreateChild( buttonsContainer, rpl::never(), - stButton, - Ui::RoundButtonTextToUpper); + stButton); + button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); const auto buttonCredits = Ui::CreateChild( buttonsContainer, diff --git a/Telegram/SourceFiles/ui/boxes/emoji_stake_box.cpp b/Telegram/SourceFiles/ui/boxes/emoji_stake_box.cpp index 3969f0a86c..6b32fd3c0d 100644 --- a/Telegram/SourceFiles/ui/boxes/emoji_stake_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/emoji_stake_box.cpp @@ -386,8 +386,8 @@ void AddStakePresets( const auto button = CreateChild( wrap, rpl::single(FormatTonAmount(nanoTon).full + diamond), - st::stakePresetButton, - RoundButtonTextToUpper); + st::stakePresetButton); + button->setTextTransform(RoundButtonTextTransform::ToUpper); button->setClickedCallback([=] { callback(nanoTon); }); diff --git a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp index fbe3227b1a..13481b99dd 100644 --- a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp @@ -199,8 +199,8 @@ void GroupCallBar::refreshScheduledProcess() { _open = std::make_unique( _inner.get(), _scheduledProcess->text(GroupCallScheduledLeft::Negative::Show), - st::groupCallTopBarOpen, - RoundButtonTextToUpper); + st::groupCallTopBarOpen); + _open->setTextTransform(RoundButtonTextTransform::ToUpper); setupRightButton(_open.get()); _open->widthValue( ) | rpl::on_next([=] { diff --git a/Telegram/SourceFiles/ui/controls/filter_link_header.cpp b/Telegram/SourceFiles/ui/controls/filter_link_header.cpp index 11af7d696a..2d2c8b9fe1 100644 --- a/Telegram/SourceFiles/ui/controls/filter_link_header.cpp +++ b/Telegram/SourceFiles/ui/controls/filter_link_header.cpp @@ -494,7 +494,8 @@ object_ptr FilterLinkProcessButton( rpl::producer badge) { const auto st = &st::filterInviteBox.button; const auto badgeSt = &st::filterInviteButtonBadgeStyle; - auto result = object_ptr(parent, rpl::single(u""_q), *st, RoundButtonTextToUpper); + auto result = object_ptr(parent, rpl::single(u""_q), *st); + result->setTextTransform(RoundButtonTextTransform::ToUpper); struct Data { TextWithEntities text; diff --git a/Telegram/SourceFiles/window/notifications_manager_default.cpp b/Telegram/SourceFiles/window/notifications_manager_default.cpp index eb1b8f2e4a..8fdc81c097 100644 --- a/Telegram/SourceFiles/window/notifications_manager_default.cpp +++ b/Telegram/SourceFiles/window/notifications_manager_default.cpp @@ -660,7 +660,9 @@ Notification::Notification( , _forwardedCount(forwardedCount) , _fromScheduled(fromScheduled) , _close(this, st::notifyClose) -, _reply(this, tr::lng_notification_reply(), st::defaultBoxButton, Ui::RoundButtonTextToUpper) { +, _reply(this, tr::lng_notification_reply(), st::defaultBoxButton) { + _reply->setTextTransform(Ui::RoundButtonTextTransform::ToUpper); + Lang::Updated( ) | rpl::on_next([=] { refreshLang(); diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 841e271a57..f2e82f8a4e 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 841e271a571dd43488be101a2eff22881ac4a724 +Subproject commit f2e82f8a4eaf90180955ca4f8a0253efea766fc3