Commit Graph

189 Commits

Author SHA1 Message Date
23rd 640d1f459b [img-editor] Fixed wheel delta with pressed Shift while zoom canvas. 2026-04-20 16:32:45 +03:00
23rd d7cfa68a3f [img-editor] Added wheel zoom and middle-button panning for scene items. 2026-04-20 13:55:23 +03:00
23rd 58c7467720 [img-editor] Locked crop frame as stencil and clipped output by shape. 2026-04-20 13:55:23 +03:00
23rd e99442cb1c [img-editor] Fixed contrast text color in edit proxy for framed type. 2026-04-20 12:54:18 +03:00
23rd 085f139abd [img-editor] Clamped text width to prevent negative layout constraints. 2026-04-20 12:54:18 +03:00
23rd f616d19a4e [img-editor] Fixed emoji drawing in text wrapped across line boundaries. 2026-04-20 12:54:18 +03:00
23rd 61cf3a960c [img-editor] Ignored stale deferred text edit callbacks from prior edit. 2026-04-20 12:54:18 +03:00
23rd f94ec5a8a9 [img-editor] Added text editing state flow to keep palette consistent. 2026-04-20 12:54:18 +03:00
23rd a2f228e74d [img-editor] Fixed text selection color sync and isolated from brush. 2026-04-20 12:54:18 +03:00
23rd 3ec1ff8c7e [img-editor] Synced palette color and tool selection with text focus. 2026-04-20 12:54:18 +03:00
23rd 631fe4f362 [img-editor] Improved color handling in text items. 2026-04-20 12:54:18 +03:00
23rd 6153480e43 [img-editor] Fixed text wrapping, spacing, and geometry in editor items. 2026-04-20 12:54:17 +03:00
23rd e1789d40d4 [img-editor] Added auto-fitting width for text editing overlay. 2026-04-20 12:54:17 +03:00
23rd 0fff162c65 [img-editor] Added emoji support in photo editor text items. 2026-04-20 12:54:17 +03:00
23rd 0b70be9a9b [img-editor] Added styled text items. 2026-04-20 12:54:17 +03:00
23rd 90ec66c34c [img-editor] Added simple implementations of blur brush. 2026-04-03 12:59:54 +03:00
23rd 1fa0a8e7ee [img-editor] Removed built-in palette color when width is too small. 2026-04-03 08:25:29 +03:00
23rd f62ae325df [img-editor] Added aspect ratio presets menu to crop tool. 2026-03-31 07:40:24 +03:00
23rd bd6c50c4c2 [img-editor] Dropped saved brush sizes. 2026-03-30 11:01:56 +03:00
John Preston 87ebd2720f Send high quality as first-class option. 2026-03-25 13:08:50 +07:00
23rd f1117b0071 [img-editor] Improved crop overlay with 3x3 grid. 2026-03-16 14:11:52 +03:00
23rd 921d5a62d2 [img-editor] Fixed first-stroke jump from invalidated refs.
The interpolation loop kept references to _currentStroke.back()
while pushing into the same vector.
Vector reallocation could invalidate these references
and create random first-segment jumps,
so lastPos/lastPressure are now copied before the loop.

Related commit: d581bdcf56.
2026-03-15 08:05:54 +03:00
23rd 2cce6ddb3e [img-editor] Fixed brush crash by clamping content rect within scene. 2026-03-15 08:05:54 +03:00
23rd 7d1a7c2b6c [img-editor] Updated color button with rainbow gradient ring. 2026-03-12 12:20:42 +03:00
23rd d581bdcf56 [img-editor] Fixed initial brush stroke on start paint. 2026-03-12 12:59:50 +04:00
23rd cf7ebb0f4a [img-editor] Refined control islands with pill bars. 2026-03-12 12:59:50 +04:00
23rd a242e76f26 [img-editor] Added simple animation to current color on change color. 2026-03-12 12:59:50 +04:00
23rd 380c333185 [img-editor] Added simple animation to size control. 2026-03-12 12:59:50 +04:00
23rd 02eac1ee14 [img-editor] Added ability to save tool size and color separately. 2026-03-12 12:59:49 +04:00
23rd d0d1d91ef3 [img-editor] Added simple highlight of selected tool. 2026-03-12 12:59:49 +04:00
23rd 91df896f8e [img-editor] Refined eraser brush algorithm. 2026-03-12 12:59:49 +04:00
23rd 537375b92b [img-editor] Added simple modes of brush for arrow / marker / eraser. 2026-03-12 12:59:49 +04:00
23rd a5a43dcc7f [img-editor] Added tool buttons in paint mode. 2026-03-12 12:59:49 +04:00
23rd d189b1966e [img-editor] Added simple palette with buttons. 2026-03-12 12:59:49 +04:00
23rd 4b521e687e [img-editor] Removed combined control for size and color. 2026-03-12 12:59:49 +04:00
23rd 6ed80c9706 [img-editor] Added dedicated brush size control. 2026-03-12 12:59:49 +04:00
23rd 898eebbf4b [img-editor] Fixed non-clickable bottom area by masking editor controls. 2026-03-12 12:59:49 +04:00
23rd c4847e752c [img-editor] Expanded paint canvas to fill editor window during zoom. 2026-03-12 12:59:49 +04:00
23rd 8aa09d32dc [img-editor] Fixed brush stroke start offset and spacing at high zoom.
Related commit: 7ce7b88a40.
2026-03-12 12:59:49 +04:00
23rd 00ef43657e [img-editor] Fixed crash on close by detaching viewport event filter. 2026-03-12 12:59:49 +04:00
23rd 7c5475e62a [img-editor] Added wheel zoom and middle-button pan for paint canvas. 2026-03-12 12:59:49 +04:00
23rd 6418af0ada Improved division by zero in photo editor stroke rendering calculations. 2025-12-22 17:56:54 +04:00
23rd eca8dfb0ec Renamed rpl::start_with_ with rpl::on_. 2025-12-10 21:28:33 +03:00
John Preston 03df5b8546 rpl::type_erased() -> rpl::type_erased. 2025-12-10 14:27:05 +04:00
23rd 7ce7b88a40 Implemented adaptive drawing algorithm with smoothing in image editor.
- Adaptive point filtering - zoom-based minimum distance (3px / zoom)
  prevents point overflow during fast movements.

- Speed-based pressure simulation - exponential smoothing (decay 0.95)
  creates variable line thickness: pressure = clamp(1.0 - speed * 0.1).

- Two-pass
  weighted averaging - smoothed = current * 0.5 + neighbors * 0.25
  eliminates jagged lines while preserving initial direction.

- Incremental rendering with 3-point overlap - draws only new segments,
  reduces complexity from O(n^2) to O(n).

- QPainterPath with quadratic Bezier curves - single fillPath() call
  instead of multiple drawEllipse().
2025-12-10 09:47:48 +03:00
John Preston 0b67fa65f2 Full upgradable variants preview. 2025-12-05 20:11:54 +04:00
John Preston b754ad5248 Use base::weak_qptr / base::make_weak. 2025-07-23 11:40:59 +04:00
Sean Wei 5a6a5fd4d1 Change const T&& parameters to T&& to enable proper move semantics
Previously some constructors/functions used `const T&&`, which prevents
calling the move constructor. This commit removes the `const` qualifier
so that `std::move` actually performs a move.
2025-06-27 20:50:08 +04:00
John Preston ded0936bc4 Fix arbitrary aspect in photo editor crop. 2025-02-13 20:20:14 +04:00
John Preston e05bb75b8a Allow sending videos with covers. 2025-02-12 17:24:24 +04:00