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:
parent
017c0f87b4
commit
cf17e385b5
4 changed files with 113 additions and 1 deletions
17
Applications/PaintBrush/ColorDialog.h
Normal file
17
Applications/PaintBrush/ColorDialog.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue