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

switching between light and dark background automatically #124

Open
AndriiOmelianenko opened this issue May 23, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@AndriiOmelianenko
Copy link

Expected Behavior

just duplicating an issue from old repo hidetatz/kubecolor#115

@applejag applejag added the enhancement New feature or request label May 23, 2024
@applejag
Copy link
Collaborator

If we implement this, then I'd like our themes to have a non-light and non-dark variant, and then introduce an additional auto theme that will become the new default.

Logic should be as follows:

  • auto preset: detect color and pick dark or light
  • protanopia preset: detect and pick protanopia-dark or protanopia-light
  • if detection fails, fall back to the dark variant.

Example library I found after a short Google that implements this detection: (albeit in Rust, but might be some Go variants available. On the other hand, shouldnt be too tricky to just port) https://github.com/Canop/terminal-light

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants