Tim Ledbetter
a6f6a1afd2
Userland: Prefer non-fallible construction for LibGUI objects
2023-09-18 18:00:45 +02:00
Andreas Kling
8322b31b97
LibGUI: Remove Widget::try_set_layout<T>()
...
And fall back to the infallible set_layout<T>().
Work towards #20557 .
2023-08-14 14:57:54 +02:00
Lucas CHOLLET
3f35ffb648
Userland: Prefer _string
over _short_string
...
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
2023-08-08 07:37:21 +02:00
Tim Ledbetter
f132751fae
PixelPaint: Ensure the selection is always within image bounds
2023-05-05 16:35:42 +01:00
Tim Ledbetter
ea0b527675
PixelPaint: Allow lasso tool to select outside the active layer
...
This makes the lasso tool behavior consistent with other selection
tools.
2023-05-05 16:35:42 +01:00
thankyouverycool
91bafc2653
LibGUI+Userland: Port Labels to String
2023-04-30 05:48:14 +02:00
Karol Kosek
be717edd33
PixelPaint: Propagate errors from making tool property widgets
2023-02-16 23:36:58 +00:00
Tim Schumacher
82a152b696
LibGfx: Remove try_
prefix from bitmap creation functions
...
Those don't have any non-try counterpart, so we might as well just omit
it.
2023-01-26 20:24:37 +00:00
Tim Ledbetter
b0fad409bf
PixelPaint: Scale lasso tool preview path on zoom level change
...
The size of the preview shown by the lasso tool now scales with the
current zoom level.
2023-01-12 11:29:10 +01:00
Tim Ledbetter
2f6c71c829
PixelPaint: Draw the lasso tool preview path with two colors
...
This stops the preview path disappearing when entering a dark area of
the image.
2023-01-06 15:41:48 +01:00
Timothy Slater
296b76095f
PixelPaint: Change tool keydown handle to non-const
...
This was changed to const in PR #15788 but presents problems for tools
that may need to forward this event to non-const event handlers.
2022-12-16 10:14:20 +00:00
MacDue
458ca83d8c
PixelPaint: Fix lasso tool preview when zoomed in
...
Previously only part of the preview would be visible when zoomed in,
with less visible the more you zoomed. This also now doesn't scale
the preview line thickness, similar to other image editing programs.
2022-11-27 20:35:22 +01:00
Timothy Slater
3d542b0c38
PixelPaint: Add lasso selection tool
...
Lasso selection works by allowing the user to draw an arbitrary shape
much like the pen tool and ensuring the shape is closed by connecting
the start/end points when the user is done drawing. Everything inside
the shape becomes the selection.
Selection is determined via an outer flood fill. We begin a flood fill
from a point that is guaranteed to be outside of the drawn shape, and
anything the fill doesn't touch is determined to be the selection
region.
2022-11-25 22:52:45 +01:00