mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 07:35:07 +00:00

Maybe the ColorDialog class could be fashioned into something generally usable in LibGUI, but for now it lives in the PaintBrush app. :^)
17 lines
365 B
C++
17 lines
365 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GDialog.h>
|
|
|
|
class ColorDialog final : public GDialog {
|
|
public:
|
|
explicit ColorDialog(Color, CObject* parent = nullptr);
|
|
virtual ~ColorDialog() override;
|
|
virtual const char* class_name() const override { return "ColorDialog"; }
|
|
|
|
Color color() const { return m_color; }
|
|
|
|
private:
|
|
void build();
|
|
|
|
Color m_color;
|
|
};
|