-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
White text on yellow background is not visible #37
Comments
Hey 👋,
Am I right in saying that this is when IPython is configured? I'd like to try and resolve this but I'm not sure how to replicate this scenario off the top of my head. Could you please provide step by step reproduction instructions including the instructions you followed to install the Catppuccin theme? Thanks! |
Thanks for the reproduction instructions, my results are a bit interesting. This is my IPython Config: c = get_config() #noqa
c.InteractiveShell.confirm_exit = False
c.InteractiveShell.separate_in = ""
c.TerminalIPythonApp.display_banner = True
c.TerminalInteractiveShell.true_color = True
c.TerminalInteractiveShell.highlighting_style = "catppuccin-mocha" And my wezterm options aren't actually styled in the first place: My WezTerm version is |
With regards to the original issue, unfortunately it looks related to our ANSI colours: https://stackoverflow.com/questions/14129278/how-do-i-customize-text-color-in-ipython We're in the process of overhauling ANSI colours but I think this is a classic example where the Catppuccin theme doesn't look good with "white" text on accented backgrounds (i.e. red, yellow, green, etc) so we'll need to perform some overrides for IPython to make the text foreground |
Using the suggestions from the wezterm issue you linked to, I modifed my config to: config.color_scheme = scheme_for_appearance(wezterm.gui.get_appearance())
config.colors = {indexed = {[16] = "#000000"}} and the completion now looks like yours I can live with this. At least its readable. Thanks a ton for your help. |
@Pilgrim1379 it's worth checking if i think the original issue with the yellow background on exception tracebacks is a bad highlight choice that needs to be fixed separately. |
@10b14224cc please could you provide some more details about your configuration, terminal emulator, et cetera? i am currently unable to replicate this issue. |
I have kitty and the following in my IPython configuration at ## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
# Choices: any of ['Neutral', 'NoColor', 'LightBG', 'Linux'] (case-insensitive)
# Default: 'Neutral'
c.InteractiveShell.colors = 'Linux'
c.TerminalInteractiveShell.true_color = True
c.TerminalIPythonApp.display_banner = False
try:
c.TerminalInteractiveShell.highlighting_style = get_style_by_name("catppuccin-macchiato")
except ClassNotFound as ex:
print(f"Failed to set theme: {ex}") |
nice, thanks for the info! i realised my terminal emulator was shielding me from this issue by automatically improving contrast in these situations. i've disabled that and i can now replicate the issue. it comes from the one workaround for now is to set that to the outstanding question now is whether the ansi colours used by |
This is the error message that is displayed in case of error
The yellow background renders the white text not readable.
Can we change background?
Thanks
The text was updated successfully, but these errors were encountered: