1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 07:35:07 +00:00
serenity/Applications/PaintBrush/ColorDialog.h
Andreas Kling cf17e385b5 PaintBrush: Allow editing palette colors by ctrl-clicking them.
Maybe the ColorDialog class could be fashioned into something generally
usable in LibGUI, but for now it lives in the PaintBrush app. :^)
2019-06-16 15:09:36 +02:00

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;
};