2019-06-10 17:54:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibGUI/GFrame.h>
|
|
|
|
|
|
|
|
class PaintableWidget;
|
|
|
|
|
|
|
|
class PaletteWidget final : public GFrame {
|
2019-07-25 17:49:28 +00:00
|
|
|
C_OBJECT(PaletteWidget)
|
2019-06-10 17:54:09 +00:00
|
|
|
public:
|
|
|
|
explicit PaletteWidget(PaintableWidget&, GWidget* parent);
|
|
|
|
virtual ~PaletteWidget() override;
|
|
|
|
|
2019-06-10 18:07:26 +00:00
|
|
|
void set_primary_color(Color);
|
|
|
|
void set_secondary_color(Color);
|
|
|
|
|
|
|
|
private:
|
|
|
|
PaintableWidget& m_paintable_widget;
|
2019-09-21 22:31:54 +00:00
|
|
|
RefPtr<GFrame> m_primary_color_widget;
|
|
|
|
RefPtr<GFrame> m_secondary_color_widget;
|
2019-06-10 17:54:09 +00:00
|
|
|
};
|