#pragma once #include 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; GWidget* m_primary_color_widget { nullptr }; GWidget* m_secondary_color_widget { nullptr }; };