From 8ac7fd14eca322491a376d609129551433ac9390 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 5 Nov 2025 13:18:34 +0300 Subject: [PATCH] Renamed changePhoneIconSize with normalBoxLottieSize. --- Telegram/SourceFiles/boxes/boxes.style | 3 ++- Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp | 5 +---- Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp | 5 +---- Telegram/SourceFiles/chat_helpers/message_field.cpp | 5 +---- Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp | 2 +- .../history/view/controls/history_view_suggest_options.cpp | 2 +- .../info/channel_statistics/earn/info_channel_earn_list.cpp | 2 +- .../info/statistics/info_statistics_inner_widget.cpp | 2 +- Telegram/SourceFiles/settings/settings_blocked_peers.cpp | 5 +---- Telegram/SourceFiles/settings/settings_local_passcode.cpp | 5 +---- Telegram/SourceFiles/ui/boxes/report_box_graphics.cpp | 2 +- 11 files changed, 12 insertions(+), 26 deletions(-) diff --git a/Telegram/SourceFiles/boxes/boxes.style b/Telegram/SourceFiles/boxes/boxes.style index 46cc4030f5..8e91828fbd 100644 --- a/Telegram/SourceFiles/boxes/boxes.style +++ b/Telegram/SourceFiles/boxes/boxes.style @@ -537,7 +537,6 @@ changePhoneDescription: FlatLabel(defaultFlatLabel) { } changePhoneDescriptionPadding: margins(0px, 1px, 0px, 8px); changePhoneIconPadding: margins(0px, 39px, 0px, 5px); -changePhoneIconSize: 120px; changePhoneLabel: FlatLabel(defaultFlatLabel) { minWidth: 275px; textFg: windowSubTextFg; @@ -546,6 +545,8 @@ changePhoneError: FlatLabel(changePhoneLabel) { textFg: boxTextFgError; } +normalBoxLottieSize: size(120px, 120px); + adminLogFilterUserpicLeft: 15px; adminLogFilterLittleSkip: 16px; adminLogFilterCheckbox: Checkbox(defaultBoxCheckbox) { diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp index c5a2d9f429..b70fe7bf33 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp @@ -96,10 +96,7 @@ base::unique_qptr CreateEmptyPlaceholder( container, { .name = u"my_gifts_empty"_q, - .sizeOverride = { - st::changePhoneIconSize, - st::changePhoneIconSize, - }, + .sizeOverride = st::normalBoxLottieSize, }, st::settingsBlockedListIconPadding); const auto iconWidget = icon.widget.data(); diff --git a/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp b/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp index 0006836a5a..e62ec458d4 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp @@ -55,10 +55,7 @@ void StartWithBox( box->verticalLayout(), { .name = u"rtmp"_q, - .sizeOverride = { - st::changePhoneIconSize, - st::changePhoneIconSize, - }, + .sizeOverride = st::normalBoxLottieSize, }, {}); box->verticalLayout()->add(std::move(icon.widget), {}, style::al_top); diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index 7422b4e35e..ce3f4f6054 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -1426,10 +1426,7 @@ void FrozenInfoBox( content, { .name = u"media_forbidden"_q, - .sizeOverride = { - st::changePhoneIconSize, - st::changePhoneIconSize, - }, + .sizeOverride = st::normalBoxLottieSize, }, st::settingLocalPasscodeIconPadding); content->add(std::move(icon.widget)); diff --git a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp index 5bcdcc9843..0c48d91548 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp @@ -4169,7 +4169,7 @@ void InnerWidget::refreshEmpty() { _emptyList, { .name = u"no_chats"_q, - .sizeOverride = Size(st::changePhoneIconSize), + .sizeOverride = st::normalBoxLottieSize, }); _emptyList->add(std::move(icon.widget), style::al_top); Ui::AddSkip(_emptyList); diff --git a/Telegram/SourceFiles/history/view/controls/history_view_suggest_options.cpp b/Telegram/SourceFiles/history/view/controls/history_view_suggest_options.cpp index 618d1b2793..83bb9eb981 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_suggest_options.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_suggest_options.cpp @@ -801,7 +801,7 @@ void InsufficientTonBox( box->verticalLayout(), { .name = u"diamond"_q, - .sizeOverride = Size(st::changePhoneIconSize), + .sizeOverride = st::normalBoxLottieSize, }, {}); box->setShowFinishedCallback([animate = std::move(icon.animate)] { 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 cbc837690d..2b332e1218 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 @@ -358,7 +358,7 @@ void InnerWidget::fill() { container, Dialogs::SearchEmptyIcon::NoResults, tr::lng_search_tab_no_results(Ui::Text::Bold))); - empty->setMinimalHeight(st::changePhoneIconSize); + empty->setMinimalHeight(st::normalBoxLottieSize.height()); empty->animate(); return; } diff --git a/Telegram/SourceFiles/info/statistics/info_statistics_inner_widget.cpp b/Telegram/SourceFiles/info/statistics/info_statistics_inner_widget.cpp index 2c44348561..b9f07e68dd 100644 --- a/Telegram/SourceFiles/info/statistics/info_statistics_inner_widget.cpp +++ b/Telegram/SourceFiles/info/statistics/info_statistics_inner_widget.cpp @@ -579,7 +579,7 @@ void FillLoading( : u"stats"_q; auto icon = ::Settings::CreateLottieIcon( content, - { .name = iconName, .sizeOverride = Size(st::changePhoneIconSize) }, + { .name = iconName, .sizeOverride = st::normalBoxLottieSize }, st::settingsBlockedListIconPadding); ( diff --git a/Telegram/SourceFiles/settings/settings_blocked_peers.cpp b/Telegram/SourceFiles/settings/settings_blocked_peers.cpp index 3ba6000a54..269bd81244 100644 --- a/Telegram/SourceFiles/settings/settings_blocked_peers.cpp +++ b/Telegram/SourceFiles/settings/settings_blocked_peers.cpp @@ -170,10 +170,7 @@ void Blocked::setupContent() { content, { .name = u"blocked_peers_empty"_q, - .sizeOverride = { - st::changePhoneIconSize, - st::changePhoneIconSize, - }, + .sizeOverride = st::normalBoxLottieSize, }, st::settingsBlockedListIconPadding); content->add(std::move(icon.widget)); diff --git a/Telegram/SourceFiles/settings/settings_local_passcode.cpp b/Telegram/SourceFiles/settings/settings_local_passcode.cpp index 3bab6d26e8..2534edfa2a 100644 --- a/Telegram/SourceFiles/settings/settings_local_passcode.cpp +++ b/Telegram/SourceFiles/settings/settings_local_passcode.cpp @@ -114,10 +114,7 @@ void LocalPasscodeEnter::setupContent() { content, { .name = u"local_passcode_enter"_q, - .sizeOverride = { - st::changePhoneIconSize, - st::changePhoneIconSize, - }, + .sizeOverride = st::normalBoxLottieSize, }, st::settingLocalPasscodeIconPadding); content->add(std::move(icon.widget)); diff --git a/Telegram/SourceFiles/ui/boxes/report_box_graphics.cpp b/Telegram/SourceFiles/ui/boxes/report_box_graphics.cpp index 483e61ceae..7dac7041bf 100644 --- a/Telegram/SourceFiles/ui/boxes/report_box_graphics.cpp +++ b/Telegram/SourceFiles/ui/boxes/report_box_graphics.cpp @@ -211,7 +211,7 @@ void AddReportDetailsIconButton(not_null box) { box->verticalLayout(), { .name = u"blocked_peers_empty"_q, - .sizeOverride = Size(st::changePhoneIconSize), + .sizeOverride = st::normalBoxLottieSize, }, {}); box->setShowFinishedCallback([animate = std::move(icon.animate)] {