Skip to content

Commit

Permalink
feat: change Rich repr of dtypes from blue to dim
Browse files Browse the repository at this point in the history
On dark theme screens it was very hard to read the dtype text. The `dim`
style is what is used by the null symbol
"∅", and that looks great in both
white and dark mode
on my machine.
  • Loading branch information
NickCrews authored and cpcloud committed Jan 31, 2023
1 parent 26ca127 commit 008311f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/expr/types/pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def format_dtype(dtype):
strtyp = str(dtype)
if len(strtyp) > max_string:
strtyp = strtyp[: max_string - 1] + "…"
return Text.styled(strtyp, "bold blue")
return Text.styled(strtyp, "dim")


def to_rich_table(table, console_width=None):
Expand Down

0 comments on commit 008311f

Please sign in to comment.