From ff4b9a3cfe81a0b09105ebb79edb0f9859a1c888 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 27 Jun 2025 18:12:15 +0400 Subject: [PATCH] Improve suggest post UI. --- Telegram/Resources/langs/lang.strings | 2 +- .../controls/history_view_suggest_options.cpp | 172 ++++++++++++------ Telegram/SourceFiles/ui/chat/chat.style | 14 ++ Telegram/lib_ui | 2 +- 4 files changed, 132 insertions(+), 58 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 1703dbec2c..421bc49921 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -4424,7 +4424,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_suggest_bar_title" = "Suggest a Post Below"; "lng_suggest_bar_text" = "Click to offer a price for publishing."; "lng_suggest_bar_priced" = "{amount} for publishing anytime."; -"lng_suggest_bar_priced_dated" = "{amount} {date}"; "lng_suggest_bar_dated" = "Publish on {date}"; "lng_suggest_options_title" = "Suggest a Message"; "lng_suggest_options_change" = "Suggest Changes"; @@ -4442,6 +4441,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_suggest_options_date_now" = "Publish Now"; "lng_suggest_options_date_about" = "Select the date and time you want the message to be published."; "lng_suggest_options_offer" = "Offer {amount}"; +"lng_suggest_options_offer_free" = "Offer for Free"; "lng_suggest_options_update" = "Update Terms"; "lng_suggest_action_decline" = "Decline"; 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 6554d1a16a..42a4c3a949 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_suggest_options.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_suggest_options.cpp @@ -90,8 +90,11 @@ void ChooseSuggestPriceBox( }; struct State { std::vector