mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
PaintBrush: Remove the PaintableWidget
Moved the current colors to ImageEditor for now, although I don't think that will be their final home.
This commit is contained in:
parent
de42ddfd93
commit
8882b6bd9a
18 changed files with 92 additions and 203 deletions
|
@ -27,7 +27,6 @@
|
|||
#include "SprayTool.h"
|
||||
#include "ImageEditor.h"
|
||||
#include "Layer.h"
|
||||
#include "PaintableWidget.h"
|
||||
#include <AK/Queue.h>
|
||||
#include <AK/SinglyLinkedList.h>
|
||||
#include <LibGUI/Action.h>
|
||||
|
@ -87,7 +86,7 @@ void SprayTool::on_mousedown(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&)
|
|||
if (!m_editor->rect().contains(event.position()))
|
||||
return;
|
||||
|
||||
m_color = PaintableWidget::the().color_for(event);
|
||||
m_color = m_editor->color_for(event);
|
||||
m_last_pos = event.position();
|
||||
m_timer->start();
|
||||
paint_it();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue