Skip to content

Commit

Permalink
updated colors
Browse files Browse the repository at this point in the history
  • Loading branch information
soldni committed Jan 17, 2023
1 parent 0db2c72 commit c3a9e14
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/springs/rich_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class SpringsTheme:

def __post_init__(self):
if self.t_clr is MISSING:
self.t_clr = ["magenta", "yellow", "red", "green", "cyan", "blue"]
self.t_clr = ["magenta", "yellow", "red", "cyan", "green", "blue"]

if self.t_cnt is MISSING:
self.t_cnt = len(self.t_clr)
Expand Down Expand Up @@ -441,25 +441,28 @@ def _get_longest_row(text: str) -> int:

columns = (
Column(
header=Text(f" {cl} ", style=co + theme.t_head),
header=f" {cl} ",
justify=vj, # type: ignore
style=co + theme.t_body,
header_style=co + theme.t_head,
vertical=hj, # type: ignore
)
for i, (cl, vj, hj, co) in enumerate(
zip(columns, v_justify, h_justify, theme.t_colors)
for cl, vj, hj, co in zip(
columns, v_justify, h_justify, theme.t_colors
)
)

table = Table(
*columns,
padding=(0, 0),
title=f"\n{title}" if title else None,
min_width=min_width_outside_content,
caption=caption,
title_style=theme.r_title,
caption_style=theme.r_help,
box=(theme.b_show if borders else theme.b_hide),
expand=True,
collapse_padding=True,
)
for row in values:
table.add_row(*row)
Expand Down

0 comments on commit c3a9e14

Please sign in to comment.