Drawing improvements

This commit is contained in:
Ilya Laktyushin
2022-12-22 20:58:01 +04:00
parent d19a12977a
commit 729b4d952c
10 changed files with 244 additions and 362 deletions

View File

@@ -1423,7 +1423,8 @@ private final class DrawingScreenComponent: CombinedComponent {
transition: context.transition
)
context.add(textSize
.position(CGPoint(x: sizeSliderVisible ? textSize.size.width / 2.0 : textSize.size.width / 2.0 - 33.0, y: topInset + (context.availableSize.height - topInset - bottomInset) / 2.0))
.position(CGPoint(x: textSize.size.width / 2.0, y: topInset + (context.availableSize.height - topInset - bottomInset) / 2.0))
.opacity(sizeSliderVisible ? 1.0 : 0.0)
)
let undoButton = undoButton.update(