mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(),
|
rect.y(),
|
||||||
volumeToggleWidth,
|
volumeToggleWidth,
|
||||||
volumeToggleHeight);
|
volumeToggleHeight);
|
||||||
if (!Ui::Platform::TitleControlsOnLeft()) {
|
if (!Ui::Platform::TitleControlsLayout().onLeft()) {
|
||||||
_close.area.moveLeft(rect.x()
|
_close.area.moveLeft(rect.x()
|
||||||
+ rect.width()
|
+ rect.width()
|
||||||
- (_close.area.x() - rect.x())
|
- (_close.area.x() - rect.x())
|
||||||
|
|
|
@ -228,7 +228,7 @@ rpl::producer<bool> DefaultOverlayWidgetHelper::controlsSideRightValue() {
|
||||||
|
|
||||||
return TitleControlsLayoutValue(
|
return TitleControlsLayoutValue(
|
||||||
) | rpl::map([=](const TitleControls::Layout &layout) {
|
) | rpl::map([=](const TitleControls::Layout &layout) {
|
||||||
return !TitleControlsOnLeft(layout);
|
return !layout.onLeft();
|
||||||
}) | rpl::distinct_until_changed();
|
}) | rpl::distinct_until_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue