From 0045eb4598c2e8cd2607d1823ec8b4a10ac8e0c9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 5 Dec 2024 10:45:14 +0400 Subject: [PATCH] Make price categories scrollable. --- Telegram/SourceFiles/boxes/star_gift_box.cpp | 71 +++++++++++++++++--- 1 file changed, 63 insertions(+), 8 deletions(-) diff --git a/Telegram/SourceFiles/boxes/star_gift_box.cpp b/Telegram/SourceFiles/boxes/star_gift_box.cpp index c05e29ed8..e7b0a968c 100644 --- a/Telegram/SourceFiles/boxes/star_gift_box.cpp +++ b/Telegram/SourceFiles/boxes/star_gift_box.cpp @@ -57,6 +57,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "ui/text/format_values.h" #include "ui/text/text_utilities.h" #include "ui/toast/toast.h" +#include "ui/ui_utility.h" #include "ui/vertical_list.h" #include "ui/widgets/fields/input_field.h" #include "ui/widgets/buttons.h" @@ -71,6 +72,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "styles/style_premium.h" #include "styles/style_settings.h" +#include + namespace Ui { namespace { @@ -589,11 +592,22 @@ struct GiftPriceTabs { struct State { rpl::variable> prices; rpl::variable priceTab = kPriceTabAll; + rpl::variable fullWidth; std::vector