1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 05:07:45 +00:00

PixelPaint: Add loading and saving of color palettes

Color palettes can now be stored in and read from files. The default
palette will be read from `/res/color-palettes/default.palette`
instead of being hard-coded in PaletteWidget.

The file format is one color per line, in any format that can be
understood by `Gfx::Color::from_string`.
This commit is contained in:
Felix Rauch 2021-06-21 16:14:27 +02:00 committed by Andreas Kling
parent 5ac9494483
commit 8d91dbf6c0
5 changed files with 213 additions and 41 deletions

View file

@ -0,0 +1,16 @@
#000000
#111111
#222222
#333333
#444444
#555555
#666666
#777777
#888888
#999999
#aaaaaa
#bbbbbb
#cccccc
#dddddd
#eeeeee
#ffffff