mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Made alignment to bottom for button strip in photo editor.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user