mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Adapt to TitleControlsOnLeft change
This commit is contained in:
parent
22191649aa
commit
73b3f7e298
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue