Skip to content

Commit

Permalink
fix: use default (light) theme for code (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Jan 22, 2024
1 parent 27a1623 commit 73498e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/repo_review/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

__all__ = ["main", "Formats", "Show", "Status"]

CODE_THEME = "default"


def __dir__() -> list[str]:
return __all__
Expand Down Expand Up @@ -94,7 +96,9 @@ def rich_printer(
# Compute the family name and optional description
rich_family_name = rich.text.Text.from_markup(f"[bold]{family_name}[/bold]:")
if family_description:
rich_description = rich.markdown.Markdown(family_description)
rich_description = rich.markdown.Markdown(
family_description, code_theme=CODE_THEME
)
rich_family = rich.console.Group(
rich_family_name, rich_description, rich.console.NewLine()
)
Expand Down Expand Up @@ -127,7 +131,7 @@ def rich_printer(
tree.add(msg)
else:
msg.append(rich.text.Text.from_markup(" :x:"))
detail = rich.markdown.Markdown(result.err_msg)
detail = rich.markdown.Markdown(result.err_msg, code_theme=CODE_THEME)
msg_grp = rich.console.Group(msg, detail)
tree.add(msg_grp)

Expand Down

0 comments on commit 73498e8

Please sign in to comment.