mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Made alignment to bottom for button strip in photo editor.
This commit is contained in:
parent
edfd9bedc1
commit
df7026b59c
2 changed files with 5 additions and 3 deletions
|
@ -11,7 +11,7 @@ using "ui/widgets/widgets.style";
|
||||||
using "ui/chat/chat.style";
|
using "ui/chat/chat.style";
|
||||||
|
|
||||||
photoEditorControlsHeight: 100px;
|
photoEditorControlsHeight: 100px;
|
||||||
photoEditorControlsTopSkip: 40px;
|
photoEditorControlsBottomSkip: 20px;
|
||||||
|
|
||||||
photoEditorButtonIconFg: mediaviewPipControlsFg;
|
photoEditorButtonIconFg: mediaviewPipControlsFg;
|
||||||
photoEditorButtonIconFgOver: mediaviewPipControlsFgOver;
|
photoEditorButtonIconFgOver: mediaviewPipControlsFgOver;
|
||||||
|
|
|
@ -204,8 +204,6 @@ PhotoEditorControls::PhotoEditorControls(
|
||||||
|
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
const auto &buttonsTop = st::photoEditorControlsTopSkip;
|
|
||||||
|
|
||||||
rpl::combine(
|
rpl::combine(
|
||||||
sizeValue(),
|
sizeValue(),
|
||||||
_mode.value()
|
_mode.value()
|
||||||
|
@ -216,6 +214,10 @@ PhotoEditorControls::PhotoEditorControls(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto buttonsTop = height()
|
||||||
|
- st::photoEditorControlsBottomSkip
|
||||||
|
- _transformButtons->height();
|
||||||
|
|
||||||
const auto ¤t = _transformButtons->isHidden()
|
const auto ¤t = _transformButtons->isHidden()
|
||||||
? _paintButtons
|
? _paintButtons
|
||||||
: _transformButtons;
|
: _transformButtons;
|
||||||
|
|
Loading…
Add table
Reference in a new issue