1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

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. :^)
This commit is contained in:
Andreas Kling 2019-06-16 15:09:36 +02:00
parent 017c0f87b4
commit cf17e385b5
4 changed files with 113 additions and 1 deletions

View file

@ -0,0 +1,17 @@
#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;
};