summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush/PaletteWidget.h
blob: e4e867a3346aa687b3367710fc8d42fb71ecc375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
    GWidget* m_primary_color_widget { nullptr };
    GWidget* m_secondary_color_widget { nullptr };
};