You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the base16_default theme which sets both a foreground and a background color for "ui.selection", I noticed a difference in behavior between selection highlighting in the buffer window and the picker preview.
The buffer window will respect the foreground color, while the picker preview will not. Here are a couple of examples with a basic test theme to illustrate the issue on both 24.07 and 25.01:
Notice the string text has a foreground of black in the buffer window where the text is selected, overriding the green theme for strings. While in the picker preview the text remains green and the black foreground override for selection is not applied.
Hope that is clear, and apologies if this has already been reported elsewhere. If you would like any further details let me know. The motivation for fixing this is that the selected text can become hard to read in the picker in specific cases.
Reproduction Steps
I tried this:
hx test.toml
:theme test
jx space /selection
I expected this to happen:
The foreground color of the string text selected in the picker preview to be black as set by "ui.selection".
Instead, this happened:
The foreground color of the string text selected in the picker preview was green as set by "string".
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
Ghostty 1.0.1
Installation Method
nixpkgs / release page
Helix Version
helix 24.07 / helix 25.01
The text was updated successfully, but these errors were encountered:
Summary
When using the base16_default theme which sets both a foreground and a background color for "ui.selection", I noticed a difference in behavior between selection highlighting in the buffer window and the picker preview.
The buffer window will respect the foreground color, while the picker preview will not. Here are a couple of examples with a basic test theme to illustrate the issue on both 24.07 and 25.01:
Notice the string text has a foreground of black in the buffer window where the text is selected, overriding the green theme for strings. While in the picker preview the text remains green and the black foreground override for selection is not applied.
Hope that is clear, and apologies if this has already been reported elsewhere. If you would like any further details let me know. The motivation for fixing this is that the selected text can become hard to read in the picker in specific cases.
Reproduction Steps
I tried this:
hx test.toml
:theme test
jx space /selection
I expected this to happen:
The foreground color of the string text selected in the picker preview to be black as set by "ui.selection".
Instead, this happened:
The foreground color of the string text selected in the picker preview was green as set by "string".
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
Ghostty 1.0.1
Installation Method
nixpkgs / release page
Helix Version
helix 24.07 / helix 25.01
The text was updated successfully, but these errors were encountered: