Closed JacobKochems closed 1 month ago
Just a note that this is fixed in huh
and will hit gum
after we do a point release and bump the dependency.
Thanks for the information. I guess we leave this issue open until the version bump and then close it?
Yeah. Well do it soon to fix a few issues.
This is fixed in main
and will be available in the next release.
Released! Find this in Gum v0.14.2.
Describe the bug
gum choose --item.foreground
has no effect. I tried several color codes but none had any effect on the colorization of the list items.To Reproduce Steps to reproduce the behavior:
gum choose 1 2 3
into a terminal emulator with color supportgum choose 1 2 3 --item.foreground 12
into a terminal emulator with color supportExpected behavior The non-selected list items should be displayed in the specified color (Blue (System)).
Screenshots Kitty (theme: Gruvbox Material Dark Soft)
![item foreground_subshell](https://github.com/charmbracelet/gum/assets/41692189/977ccd7a-36a7-4cfa-bf88-0d02c8c6f024)
Kitty (theme: Github Light High Contrast)
![light_item foreground_subshell](https://github.com/charmbracelet/gum/assets/41692189/4a8dc3f0-6580-4fa8-9bbc-45f53056e247)
Desktop (please complete the following information):
Additional context As one can see from the last screenshot
gum choose
behaves differently with respect to styling if called from within a subshell, which is especially unfortunate if one really needs to use a light theme (because of lighting conditions), in which case the list items are very hard to read.