mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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";
|
||||
|
||||
photoEditorControlsHeight: 100px;
|
||||
photoEditorControlsTopSkip: 40px;
|
||||
photoEditorControlsBottomSkip: 20px;
|
||||
|
||||
photoEditorButtonIconFg: mediaviewPipControlsFg;
|
||||
photoEditorButtonIconFgOver: mediaviewPipControlsFgOver;
|
||||
|
|
|
@ -204,8 +204,6 @@ PhotoEditorControls::PhotoEditorControls(
|
|||
|
||||
}, lifetime());
|
||||
|
||||
const auto &buttonsTop = st::photoEditorControlsTopSkip;
|
||||
|
||||
rpl::combine(
|
||||
sizeValue(),
|
||||
_mode.value()
|
||||
|
@ -216,6 +214,10 @@ PhotoEditorControls::PhotoEditorControls(
|
|||
return;
|
||||
}
|
||||
|
||||
const auto buttonsTop = height()
|
||||
- st::photoEditorControlsBottomSkip
|
||||
- _transformButtons->height();
|
||||
|
||||
const auto ¤t = _transformButtons->isHidden()
|
||||
? _paintButtons
|
||||
: _transformButtons;
|
||||
|
|
Loading…
Add table
Reference in a new issue