diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index e0f215d5cd..7f30d315f6 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -857,6 +857,12 @@ bool Panel::createWebview(const Webview::ThemeParams ¶ms) { if (!raw->widget()) { return false; } + +#if !defined Q_OS_WIN && !defined Q_OS_MAC + _widget->allowChildFullScreenControls( + !raw->widget()->inherits("QWindowContainer")); +#endif // !Q_OS_WIN && !Q_OS_MAC + QObject::connect(raw->widget(), &QObject::destroyed, [=] { const auto parent = _webviewParent.data(); if (!_webview @@ -1613,14 +1619,6 @@ void Panel::overrideBodyColor(std::optional color) { raw->setTextColorOverride(std::nullopt); return; } - const auto set = [](const style::color &color, QColor value) { - color.set( - uchar(value.red()), - uchar(value.green()), - uchar(value.blue()), - uchar(value.alpha())); - }; - const auto contrast = 2.5; const auto luminance = 0.2126 * color->redF() + 0.7152 * color->greenF() diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 716986e75b..c6710c2cfe 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 716986e75b3abc3329f75346aeff9062a58bf98f +Subproject commit c6710c2cfe68d3bc3c29ffbf6cd9d0a4cb168226