@@ -200,8 +200,12 @@ Define the style of the tables printed with the text back end.
200200- `stubhead_label::Crayon`: Crayon with the style for the stubhead label.
201201- `row_label::Crayon`: Crayon with the style for the row labels.
202202- `row_group_label::Crayon`: Crayon with the style for the row group label.
203- - `first_line_column_label::Crayon`: Crayon with the style for the first column label lines.
204- - `column_label::Crayon`: Crayon with the style for the rest of the column labels.
203+ - `first_line_column_label::Union{Crayon, Vector{Crayon}}`: Crayon or crayons with the style
204+ for the first column label lines. If a vector of crayons is passed, it must have the
205+ same length as the number columns in the table.
206+ - `column_label::Union{Crayon, Vector{Crayon}}`: Crayon or crayons with the style for the
207+ rest of the column labels. If a vector of crayons is passed, it must have the same
208+ length as the number of columns in the table.
205209- `first_line_merged_column_label::Crayon`: Crayon with the style for the merged cells at
206210 the first column label line.
207211- `merged_column_label::Crayon`: Crayon with the style for the merged cells at the rest of
@@ -213,16 +217,19 @@ Define the style of the tables printed with the text back end.
213217- `omitted_cell_summary::Crayon`: Crayon with the style for the omitted cell summary.
214218- `table_border::Crayon`: Crayon with the style for the table border.
215219"""
216- @kwdef struct TextTableStyle
220+ @kwdef struct TextTableStyle{
221+ TFCL<: Union{Crayon, Vector{Crayon}} ,
222+ TCL<: Union{Crayon, Vector{Crayon}}
223+ }
217224 title:: Crayon = _TEXT__BOLD
218225 subtitle:: Crayon = _TEXT__DEFAULT
219226 row_number_label:: Crayon = _TEXT__BOLD
220227 row_number:: Crayon = _TEXT__DEFAULT
221228 stubhead_label:: Crayon = _TEXT__BOLD
222229 row_label:: Crayon = _TEXT__BOLD
223230 row_group_label:: Crayon = _TEXT__BOLD
224- first_line_column_label:: Crayon = _TEXT__BOLD
225- column_label:: Crayon = _TEXT__DARK_GRAY
231+ first_line_column_label:: TFCL = _TEXT__BOLD
232+ column_label:: TCL = _TEXT__DARK_GRAY
226233 first_line_merged_column_label:: Crayon = _TEXT__BOLD_UNDERLINE
227234 merged_column_label:: Crayon = _TEXT__DARK_GRAY_UNDERLINE
228235 summary_row_cell:: Crayon = _TEXT__DEFAULT
0 commit comments