Adapt to TitleControlsOnLeft change

This commit is contained in:
Ilya Fedin 2024-12-19 14:41:45 +04:00 committed by John Preston
parent 22191649aa
commit 73b3f7e298
2 changed files with 2 additions and 2 deletions

View file

@ -1259,7 +1259,7 @@ void Pip::setupButtons() {
rect.y(),
volumeToggleWidth,
volumeToggleHeight);
if (!Ui::Platform::TitleControlsOnLeft()) {
if (!Ui::Platform::TitleControlsLayout().onLeft()) {
_close.area.moveLeft(rect.x()
+ rect.width()
- (_close.area.x() - rect.x())

View file

@ -228,7 +228,7 @@ rpl::producer<bool> DefaultOverlayWidgetHelper::controlsSideRightValue() {
return TitleControlsLayoutValue(
) | rpl::map([=](const TitleControls::Layout &layout) {
return !TitleControlsOnLeft(layout);
return !layout.onLeft();
}) | rpl::distinct_until_changed();
}