Skip to content

use cursor background color for selected unmarked rows #3442

Open
@tyholling

Description

@tyholling

Describe the bug
The table cursorBgColor setting is not used. In the table, a selected row has foreground: cursorFgColor and the background is the text color for the line. Updating the logic to use the cursorBgColor for selected, unmarked rows.

To Reproduce
Steps to reproduce the behavior:

  1. Use the stock skin, and set cursorBgColor to green
  2. Go to Pods view
  3. Observe that the row selected by the cursor, for unmarked rows, uses the text color as the background color, instead of green.

Historical Documents

Expected behavior
For a marked row, to align with the current behavior, I would expect the selected background color to use the markColor, which it does, by setting the text color. But for unmarked rows, I would expect the selected background color to use cursorBgColor, but instead it uses the text color.

Screenshots

  • k9s 0.50.6 with cursorBgColor: green and no rows marked:
Image
  • development build with cursorBgColor: green and no rows marked:
Image

Versions (please complete the following information):

  • OS: macOS 15.5
  • K9s: 0.50.6
  • K8s: 1.33.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions