mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
PixelPaint: Add background color options to "new image" dialog
This now allows you to select a background color for your new image, and optionally allows saving that default. You can pick between Transparent, White, Black, or a custom color (similar to other editors).
This commit is contained in:
parent
69de709625
commit
e8dbb1a8b2
3 changed files with 69 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/Dialog.h>
|
||||
#include <LibGfx/Color.h>
|
||||
|
||||
namespace PixelPaint {
|
||||
|
||||
|
@ -16,12 +17,14 @@ class CreateNewImageDialog final : public GUI::Dialog {
|
|||
public:
|
||||
Gfx::IntSize image_size() const { return m_image_size; }
|
||||
DeprecatedString const& image_name() const { return m_image_name; }
|
||||
Gfx::Color background_color() const { return m_background_color; }
|
||||
|
||||
private:
|
||||
CreateNewImageDialog(GUI::Window* parent_window);
|
||||
|
||||
DeprecatedString m_image_name;
|
||||
Gfx::IntSize m_image_size;
|
||||
Gfx::Color m_background_color {};
|
||||
|
||||
RefPtr<GUI::TextBox> m_name_textbox;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue