mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +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
|
@ -140,6 +140,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
auto& cell = m_sheet->ensure(position);
|
||||
cell.set_type(dialog->type());
|
||||
cell.set_type_metadata(dialog->metadata());
|
||||
cell.set_conditional_formats(dialog->conditional_formats());
|
||||
}
|
||||
|
||||
m_table_view->update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue