mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:57:44 +00:00
PixelPaint: Use unveil to hide file system
This commit is contained in:
parent
62af82f494
commit
1927dbf025
6 changed files with 206 additions and 64 deletions
|
@ -28,13 +28,16 @@ public:
|
|||
|
||||
Vector<Color> colors();
|
||||
|
||||
static Result<Vector<Color>, String> load_palette_file(String const&);
|
||||
static Result<void, String> save_palette_file(Vector<Color>, String const&);
|
||||
static Result<Vector<Color>, String> load_palette_fd_and_close(int);
|
||||
static Result<Vector<Color>, String> load_palette_path(String const&);
|
||||
static Result<void, String> save_palette_fd_and_close(Vector<Color>, int);
|
||||
static Vector<Color> fallback_colors();
|
||||
|
||||
void set_image_editor(ImageEditor&);
|
||||
|
||||
private:
|
||||
static Result<Vector<Color>, String> load_palette_file(Core::File&);
|
||||
|
||||
explicit PaletteWidget();
|
||||
|
||||
ImageEditor* m_editor { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue