mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Improve main menu bots disclaimer acceptance.
This commit is contained in:
@@ -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(
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -561,10 +561,6 @@ bool Panel::createWebview(const Webview::ThemeParams ¶ms) {
|
||||
_widget->showInner(std::move(outer));
|
||||
_webviewParent = container;
|
||||
|
||||
container->paintRequest() | rpl::start_with_next([=] {
|
||||
QPainter(container).fillRect(container->rect(), QColor(0, 128, 0, 255));
|
||||
}, container->lifetime());
|
||||
|
||||
_webviewBottom = std::make_unique<RpWidget>(_widget.get());
|
||||
const auto bottom = _webviewBottom.get();
|
||||
bottom->show();
|
||||
|
Reference in New Issue
Block a user