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
Andreas Kling
34344120f2
AK: Make "foo"_string infallible
...
Stop worrying about tiny OOMs.
Work towards #20405 .
2023-08-07 16:03:27 +02:00
thankyouverycool
91bafc2653
LibGUI+Userland: Port Labels to String
2023-04-30 05:48:14 +02:00
Tim Ledbetter
8ffe91c2f7
PixelPaint: Make the clone tool brush size consistent with other tools
...
Other brush tools treat the brush size as a radius, not diameter. The
clone tool now does the same.
2023-03-15 23:56:47 +01:00
Tim Ledbetter
8fa6a85100
PixelPaint: Scale the clone tool sample marker size with zoom level
2023-03-15 23:56:47 +01:00
Tim Ledbetter
da0ec8e635
PixelPaint: Repaint clone tool sample marker on size change
2023-03-15 23:56:47 +01:00
Tim Ledbetter
9f75c2b075
PixelPaint: Minimize clone tool sample marker repaints
...
This removes 2 FIXMEs :^)
2023-03-15 23:56:47 +01:00
Linus Groh
09d40bfbb2
Everywhere: Use _{short_,}string to create Strings from literals
2023-02-25 20:51:49 +01:00
Andreas Kling
df07416171
PixelPaint: Store tool cursors as NNRP<Gfx::Bitmap const>
2023-02-21 00:54:04 +01:00
Karol Kosek
be717edd33
PixelPaint: Propagate errors from making tool property widgets
2023-02-16 23:36:58 +00:00
Karol Kosek
67ffc687d8
LibGUI+PixelPaint: Port GUI::ValueSlider's suffix to the new String
2023-02-13 00:26:39 +00: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
Cody Hein
8855334fcc
PixelPaint: Use source alpha for CloneTool drawing
...
Prior to this change when using CloneTool on a transparent background
the output was a solid black brush stroke. Now it is based on the
source content alpha as well as it's color blended with the target.
2022-12-13 11:35:25 +01:00
MacDue
7be0b27dd3
Meta+Userland: Pass Gfx::IntPoint by value
...
This is just two ints or 8 bytes or the size of the reference on
x86_64 or AArch64.
2022-12-07 11:48:27 +01:00
MacDue
bbc149ebb9
Meta+Userland: Pass Gfx::Color by value
...
Gfx::Color is always 4 bytes (it's just a wrapper over u32) it's less
work just to pass the color directly.
This also updates IPCCompiler to prevent from generating
Gfx::Color const &, which makes replacement easier.
2022-12-07 11:48:27 +01:00
Zaggy1024
7ce346e50e
PixelPaint: Allow keydown events to bubble from ImageEditor
...
Previously, all keydown KeyEvents were accepted, causing parent widgets
not to receive them. With the addition of shortcut handling to keydown,
shortcuts were not called when the ImageEditor was focused.
2022-11-14 16:08:11 +00:00
Mustafa Quraish
7974fee800
PixelPaint: Inherit from AbstractZoomPanWidget
2022-01-14 01:02:34 +01:00
r00ster91
b6d921f682
PixelPaint: Refactor falloff computation and extend hardness range
2021-12-21 13:52:55 -08:00
Marco Cutecchia
0f24678eaf
PixelPaint: Support using a bitmap as a tool's cursor
2021-10-31 12:37:49 +01:00
Marcus Nilsson
f9e0815c3b
PixelPaint: Move Tools to it's own subdirectory
...
The PixelPaint source directory was getting a bit large, let's move all
the Tools to it's own subdirectory. Also remove some unused includes.
2021-09-20 03:04:24 +00:00