mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
Spreadsheet: Add conditional formatting
Currently only supports setting the foregound and the background colours. This patch also unifies `foreground_color' and `background_color' used throughout to a `Format' struct, in hopes of getting more formatting options one day :P
This commit is contained in:
parent
6902a09e47
commit
395df7b27d
13 changed files with 401 additions and 28 deletions
|
@ -27,6 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "../Forward.h"
|
||||
#include "../ConditionalFormatting.h"
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGfx/Color.h>
|
||||
|
@ -39,8 +40,7 @@ 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;
|
||||
Format static_format;
|
||||
};
|
||||
|
||||
class CellType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue