mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Improve webview on macOS.
This commit is contained in:
@@ -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)());
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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({});
|
||||
});
|
||||
|
Reference in New Issue
Block a user