1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04: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,28 @@
#000000
#808080
#800000
#808000
#008000
#008080
#000080
#800080
#808040
#004040
#0080ff
#004080
#8000ff
#804000
#ffffff
#c0c0c0
#ff0000
#ffff00
#00ff00
#00ffff
#0000ff
#ff00ff
#ffff80
#00ff80
#80ffff
#8080ff
#ff0080
#ff8040

View file

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