[img-editor] Removed built-in palette color when width is too small.

This commit is contained in:
23rd
2026-04-03 08:25:16 +03:00
parent cd1e0d710d
commit 1fa0a8e7ee
2 changed files with 25 additions and 5 deletions
@@ -516,11 +516,11 @@ rpl::producer<> PhotoEditorControls::cancelRequests() const {
_transformCancel->clicks() | rpl::to_empty,
_paintCancel->clicks() | rpl::to_empty,
_keyPresses.events(
) | rpl::filter([=](not_null<QKeyEvent*> e) {
const auto key = e->key();
return (key == Qt::Key_Escape)
&& !_toggledBarAnimation.animating();
}) | rpl::to_empty);
) | rpl::filter([=](not_null<QKeyEvent*> e) {
const auto key = e->key();
return (key == Qt::Key_Escape)
&& !_toggledBarAnimation.animating();
}) | rpl::to_empty);
}
rpl::producer<float64> PhotoEditorControls::aspectRatioChanges() const {