Skip to content

gum choose --item.foreground has no effect #614

@JacobKochems

Description

@JacobKochems

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:

  1. Type gum choose 1 2 3 into a terminal emulator with color support
  2. Type gum choose 1 2 3 --item.foreground 12 into a terminal emulator with color support
  3. Notice that there is no difference in the colorization of the non-selected list items.

Expected behavior
The non-selected list items should be displayed in the specified color (Blue (System)).

Screenshots
Kitty (theme: Gruvbox Material Dark Soft)
selected foreground
item foreground
item foreground_subshell

Kitty (theme: Github Light High Contrast)
light_item foreground
light_item foreground_subshell

Desktop (please complete the following information):

  • OS: Debian 12 (bookworm); also tested with: Arch Linux (2024-07-01) in VM
  • Terminal: Kitty (version: 0.35.2); also tested with: gnome-terminal
  • Version: 0.14.1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions