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

Load alt default theme if true color is not supported #1

Merged
merged 12 commits into from
Dec 3, 2021

Conversation

Omnikar
Copy link

@Omnikar Omnikar commented Nov 14, 2021

Complete the functionality of helix-editor#1078 needed to finish helix-editor#791

  • Move runtime/themes/base16_default_tty.toml to
    ./base16_theme.toml alongside theme.toml.
  • Use terminfo crate to detect whether the terminal supports true
    color and, if the user has no theme configured and their terminal does
    not support true color, load the alt default theme instead of the
    normal default.
    Changed to checking COLORTERM env variable on non-Windows and assuming true color support on Windows.

* Move `runtime/themes/base16_default_terminal.toml` to
  `base16_theme.toml` alongside `theme.toml`
* Use `terminfo` crate to detect whether the terminal supports true
  color and, if the user has no theme configured and their terminal does
  not support true color, load the alt default theme instead of the
  normal default.
book/src/configuration.md Outdated Show resolved Hide resolved
helix-view/src/editor.rs Outdated Show resolved Hide resolved
@NNBnh
Copy link
Owner

NNBnh commented Dec 2, 2021

@Omnikar sorry for the late reply, could you help me resolve this branch conflict please?

@NNBnh NNBnh merged commit 1d69ea0 into NNBnh:master Dec 3, 2021
@Omnikar Omnikar deleted the 16-color-default branch December 3, 2021 03:45
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.

4 participants