solves #14901 illegible yellow string on yellow background issue#15156
solves #14901 illegible yellow string on yellow background issue#15156GSAUC3 wants to merge 3 commits intoipython:mainfrom
Conversation
|
Hi @themavik , thank you for your review comment. I understand that this solution isn’t fully theme-independent. Would you prefer that I make it theme-aware, for example, by adjusting the colors based on whether the user is using a light or dark theme? |
|
Hi @Carreau, I’ve updated the implementation to make the traceback highlight theme-dependent for the four built-in themes: Neutral, Linux, LightBG, and NoColor. theme_highlight_map = {
"linux": "ansiblack bg:ansiyellow",
"neutral": "ansiblack bg:ansiyellow",
"lightbg": "bg:ansiblue",
"nocolor": "",
}Would this approach be acceptable, or would you prefer a different way of wiring it into the theme system? Thanks for the review. |
|
You want to update
Then in you can probably do |
|
Hi @Carreau , I’ve made the requested changes based on your suggestions. I have added |
|
Thanks ! That might not make it to today's release, but probably for the next one. |

Fixes #14901

Before:
After:
