jupyterlab-vim icon indicating copy to clipboard operation
jupyterlab-vim copied to clipboard

Status line font color conflict in Jupyterlab Dark Theme

Open HereticSK opened this issue 1 year ago • 2 comments

Description

When setting the theme to Jupyterlab Dark, there is a font color conflict in status line. The text typed in the status line can not be seen due to font color issue. It can only be shown when highlighted with a mouse.

I found this after upgrading both Jupyterlab to 4.3.0 and jupyterlab-vim to 4.1.4. Dont know which one causes this issue.

1 2

Reproduce

Either open a text file in a text editor, or open a .ipynb file, hit :s or search with /

Context

  • Browser and version: Chrome Version 130.0.6723.70 (Official Build) (64-bit)
  • JupyterLab version: 4.3.0
  • jupyterlab-vim version: 4.1.4

HereticSK avatar Nov 14 '24 13:11 HereticSK

Looking at the ex prompt with the browser inspector, it seems like the panel is themed with CodeMirror mechanisms, and it doesn't seem like codemirror-vim is introducing any custom CSS rules or classes to cause the mismatch with the editor theme. Therefore, it seems like addressing this at the JupyterLab level would be more appropriate, instead of trying to hack the ͼ2 or cm-panels rules in the extension? @krassowski, do you have any suggestions?

image

firai avatar Nov 17 '24 17:11 firai

Yes, it looks like this should be resolved in JupyterLab as .cm-panels is a class from @codemirror/view theme. I think a rule to override it would go in here. PR welcome!

krassowski avatar Nov 17 '24 17:11 krassowski

This problem is not unique to jupyterlab_dark theme - basically any theme I've tried (theme-darcula, catppuccin-jupyterlab, jupyterlab_ariakedark_theme) the foreground and background color in the status line are the same.

j-carson avatar Mar 11 '25 17:03 j-carson

Yes, it looks like this should be resolved in JupyterLab as .cm-panels is a class from @codemirror/view theme. I think a rule to override it would go in here. PR welcome!

I apologize if I have misread something but it I don't see anything even containing 'panel' in the file @krassowski linked. What file does @firai 's post refer to?

marcus-r-kelly avatar May 01 '25 15:05 marcus-r-kelly

The fix is available in JupyterLab v4.4.4.

krassowski avatar Jun 28 '25 19:06 krassowski