mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 01:08:11 +00:00
21 lines
526 B
C++
21 lines
526 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GFrame.h>
|
|
|
|
class PaintableWidget;
|
|
|
|
class PaletteWidget final : public GFrame {
|
|
public:
|
|
explicit PaletteWidget(PaintableWidget&, GWidget* parent);
|
|
virtual ~PaletteWidget() override;
|
|
|
|
virtual const char* class_name() const override { return "PaletteWidget"; }
|
|
|
|
void set_primary_color(Color);
|
|
void set_secondary_color(Color);
|
|
|
|
private:
|
|
PaintableWidget& m_paintable_widget;
|
|
GFrame* m_primary_color_widget { nullptr };
|
|
GFrame* m_secondary_color_widget { nullptr };
|
|
};
|