Skip to content

Conversation

@placintaalexandru
Copy link

@placintaalexandru placintaalexandru commented May 13, 2023

The aim of this PR is to help to fix an issue in k9s to when spawning modal forms. An example can be found here, where the NewModalForm function hardcodes the title color to tcell.ColorAqua.

A skin where everything is set on black, taken from here, shows that the title's color remains hardcoded, despite me setting manually in the k9s code the title color to red. This is a ss from the scale command from scale extender:
image

Calling confirm.SetTitleColor(whateverColor) does not seem to work as the call does not target same destination as confirm.frame.SetTitleColor (which is the fix).

In order to not change to signature of NewModalForm I attached the function that can help solve the issue and allow configuration of title color in k9s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant