Improve webview on macOS.

This commit is contained in:
John Preston 2022-08-04 19:33:56 +03:00
parent 5793241efc
commit 2f5038a792
6 changed files with 12 additions and 6 deletions

View file

@ -168,7 +168,9 @@ void PanelController::activatePanel() {
void PanelController::createPanel() {
const auto singlePeer = _settings->onlySinglePeer();
_panel = base::make_unique_q<Ui::SeparatePanel>();
_panel = base::make_unique_q<Ui::SeparatePanel>(Ui::SeparatePanelArgs{
.onAllSpaces = true,
});
_panel->setTitle((singlePeer
? tr::lng_export_header_chats
: tr::lng_export_title)());

View file

@ -80,7 +80,7 @@ CustomEmoji::CustomEmoji(
_singleSize = !useCustomEmoji
? int(base::SafeRound(
i->second.scale * Sticker::EmojiSize().width()))
: Data::FrameSizeFromTag(tag);
: (Data::FrameSizeFromTag(tag) / style::DevicePixelRatio());
if (!useCustomEmoji) {
_cachingTag = i->second.tag;
}

View file

@ -22,7 +22,9 @@ namespace Passport {
Panel::Panel(not_null<PanelController*> controller)
: _controller(controller)
, _widget(std::make_unique<Ui::SeparatePanel>()) {
, _widget(std::make_unique<Ui::SeparatePanel>(Ui::SeparatePanelArgs{
.onAllSpaces = true,
})) {
_widget->setTitle(tr::lng_passport_title());
_widget->setInnerSize(st::passportPanelSize);

View file

@ -816,7 +816,9 @@ QPointer<Ui::RpWidget> Premium::createPinnedToTop(
: st::settingsPremiumTopBarBack),
st::infoTopBarScale);
_back->setDuration(0);
_back->toggleOn(isLayer ? _backToggles.value() : rpl::single(true));
_back->toggleOn(isLayer
? _backToggles.value() | rpl::type_erased()
: rpl::single(true));
_back->entity()->addClickHandler([=] {
_showBack.fire({});
});

@ -1 +1 @@
Subproject commit dcb4a33eeffc549c8ac52a39a1b7a220076ab649
Subproject commit 9b5c58f92f129925b48449bba20bb6e9678d2e58

@ -1 +1 @@
Subproject commit 7c6aa3d997c9285a70bccf1db04fc65c7126823b
Subproject commit ac7bfd7a531b45c19ca356606d0e4659c48bb18d