Andreas Kling
27321e9c44
PaintBrush: Only send left and right mouse button events to tools
...
Tools don't know what to do with the middle mouse button anyway,
so it's better if we just don't pass it along.
Fixes #546 .
2019-09-12 20:33:05 +02:00
Andreas Kling
1c0669f010
LibDraw: Introduce (formerly known as SharedGraphics.)
...
Instead of LibGUI and WindowServer building their own copies of the drawing
and graphics code, let's it in a separate LibDraw library.
This avoids building the code twice, and will encourage better separation
of concerns. :^)
2019-07-18 10:18:16 +02:00
Andreas Kling
b529b4a3e6
PaintBrush: Add support for opening files.
...
Obviously this only supports whatever PNG files that load_png() can decode
at the moment.
2019-06-25 20:27:32 +02:00
Andreas Kling
25fd847ef2
PaintBrush: Add a color picker tool.
2019-06-22 12:05:35 +02:00
Robin Burchell
502c54e39a
Add a simple spray fill tool
...
Could do with some more tweaking no doubt, and it'd be nice to have a
circular spray, but this is better than nothing.
2019-06-17 05:54:32 +02:00
Andreas Kling
56cbe15033
PaintBrush: Factor out the pen tool into an actual PenTool class.
...
Also add a Tool base class, and an empty BucketTool subclass which is the
next thing to implement.
2019-06-14 18:51:57 +02:00
Andreas Kling
cadc65a82d
PaintBrush: Let's use Color::MidGray for the outside-the-bitmap area.
2019-06-11 20:39:32 +02:00
Andreas Kling
70564a78b2
PaintBrush: Tidy up the UI a bit. Add some more colors.
2019-06-11 20:37:58 +02:00
Andreas Kling
f86b1bdca1
PaintBrush: Add a PaletteWidget to allow color selection.
...
Also use different colors for left/right mouse button. :^)
2019-06-10 19:54:09 +02:00
Andreas Kling
642c82fbff
PaintBrush: Use draw_line() when drawing continuously.
2019-06-10 19:35:24 +02:00
Andreas Kling
d599544890
PaintBrush: Start working on a simple painting application.
2019-06-10 19:29:33 +02:00