mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +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
28
Base/res/color-palettes/default.palette
Normal file
28
Base/res/color-palettes/default.palette
Normal 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
|
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