Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach method to set color to *ModalForm #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
1 participant