2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Improve main menu bots disclaimer acceptance.

This commit is contained in:
John Preston
2023-09-08 21:55:28 +04:00
parent 229f7a2c15
commit ef969df86e
8 changed files with 205 additions and 121 deletions

View File

@@ -24,7 +24,9 @@ void ConfirmBox(not_null<Ui::GenericBox*> box, ConfirmBoxArgs &&args) {
if (!v::is_null(args.text)) {
const auto padding = st::boxPadding;
const auto use = withTitle
const auto use = args.labelPadding
? *args.labelPadding
: withTitle
? QMargins(padding.left(), 0, padding.right(), padding.bottom())
: padding;
const auto label = box->addRow(

View File

@@ -30,6 +30,7 @@ struct ConfirmBoxArgs {
const style::FlatLabel *labelStyle = nullptr;
Fn<bool(const ClickHandlerPtr&, Qt::MouseButton)> labelFilter;
std::optional<QMargins> labelPadding;
v::text::data title = v::null;