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

tctl: fix tctl top colors on dark terminals #4231

Merged
merged 1 commit into from
Aug 19, 2020
Merged

Conversation

awly
Copy link
Contributor

@awly awly commented Aug 19, 2020

If we leave TextStyle empty on UI elements, it will use the default
foreground color defined by the terminal (light for dark terminals and
vice versa). Same goes for BorderStyle.

A few other tweaks to UI and source metrics:

  • update table ratios to prevent hiding output rows on short (height)
    terminal windows
  • update tab selector style to use bold/underline instead of colors to
    mark selected tab
  • print No data in histogram tables when there are no values
  • don't report the local cluster in remote_clusters metric

Before:
dark-before
light-before
After:
dark-after
light-after

Fixes #4049

If we leave `TextStyle` empty on UI elements, it will use the default
foreground color defined by the terminal (light for dark terminals and
vice versa). Same goes for `BorderStyle`.

A few other tweaks to UI and source metrics:
- update table ratios to prevent hiding output rows on short (height)
  terminal windows
- update tab selector style to use bold/underline instead of colors to
  mark selected tab
- print `No data` in histogram tables when there are no values
- don't report the local cluster in `remote_clusters` metric
@awly awly force-pushed the andrew/tctl-top-colors branch from f5fdcd7 to 9fc5edc Compare August 19, 2020 18:48
Copy link
Contributor

@webvictim webvictim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built this and tested it on my own cluster, works great. LGTM!

@awly awly merged commit 96375c7 into master Aug 19, 2020
@awly awly deleted the andrew/tctl-top-colors branch August 19, 2020 22:17
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.

tctl top doesn't show on dark terminals
2 participants