mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Spreadsheet: Allow cells to optionally have static fg/bg colors
This commit is contained in:
parent
1674903dcc
commit
8fa385f774
3 changed files with 19 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "../Forward.h"
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/TextAlignment.h>
|
||||
#include <LibJS/Forward.h>
|
||||
|
||||
|
@ -38,6 +39,8 @@ struct CellTypeMetadata {
|
|||
int length { -1 };
|
||||
String format;
|
||||
Gfx::TextAlignment alignment { Gfx::TextAlignment::CenterRight };
|
||||
Optional<Gfx::Color> static_foreground_color;
|
||||
Optional<Gfx::Color> static_background_color;
|
||||
};
|
||||
|
||||
class CellType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue