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:
parent
5ac9494483
commit
8d91dbf6c0
5 changed files with 213 additions and 41 deletions
16
Base/res/color-palettes/greyscale.palette
Normal file
16
Base/res/color-palettes/greyscale.palette
Normal file
|
@ -0,0 +1,16 @@
|
|||
#000000
|
||||
#111111
|
||||
#222222
|
||||
#333333
|
||||
#444444
|
||||
#555555
|
||||
#666666
|
||||
#777777
|
||||
#888888
|
||||
#999999
|
||||
#aaaaaa
|
||||
#bbbbbb
|
||||
#cccccc
|
||||
#dddddd
|
||||
#eeeeee
|
||||
#ffffff
|
Loading…
Add table
Add a link
Reference in a new issue