2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Start UI of the new gift sending box.

This commit is contained in:
John Preston
2024-09-06 14:56:23 +04:00
parent e3bc4dab85
commit 761617c1ce
6 changed files with 567 additions and 63 deletions

View File

@@ -26,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/language_box.h"
#include "boxes/username_box.h"
#include "boxes/about_box.h"
#include "boxes/gift_credits_box.h"
#include "ui/basic_click_handlers.h"
#include "ui/boxes/confirm_box.h"
#include "ui/controls/userpic_button.h"
@@ -527,7 +528,8 @@ void SetupPremium(
{ .icon = &st::menuIconGiftPremium }
);
button->addClickHandler([=] {
controller->showGiftPremiumsBox(u"gift"_q);
Ui::ShowGiftCreditsBox(controller, [=] {
});
});
}
Ui::AddSkip(container);