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

Truecolor friendly #1348

Closed
wants to merge 4 commits into from
Closed

Truecolor friendly #1348

wants to merge 4 commits into from

Conversation

WindSoilder
Copy link
Contributor

fixes: #1271
relative: #1311

Copies from my proposal:

providing a new command named theme-base16, and it only prompt and allows user to activate non truecolor, base16 themes;

To handle this efficiently, without looking into the theme itself to detect if it's true color theme. We can make a name convention for the name of theme:

  1. non-truecolor theme named base16-xxxx.toml.
  2. else they are truecolor theme.
  3. a special case: true color base16 theme, we can rename it as base16-xxx-256.toml (just like these base16 themes for iterm2: https://github.com/martinlindhe/base16-iterm2/tree/master/itermcolors). It will involve renaming base16_default_dark and base16_default_light.

@@ -72,8 +90,8 @@ impl Loader {

/// Lists all theme names available in default and user directory
pub fn names(&self) -> Vec<String> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I don't know why this exists, no using reference for this method.

Copy link
Member

Choose a reason for hiding this comment

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

I think this was supposed to be used by the theme completion

@@ -2819,6 +2818,13 @@ pub mod cmd {
fun: theme,
completer: Some(completers::theme),
},
TypableCommand {
name: "theme-base16",
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this should be two different commands, just a single one that behaves differently depending on the config. For that to work, #1134 needs to land first though, since it adds cx to completions

@the-mikedavis the-mikedavis added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 18, 2022
@kirawi
Copy link
Member

kirawi commented Sep 13, 2022

Is there an interest in continuing this PR? I can close it if not.

@WindSoilder
Copy link
Contributor Author

WindSoilder commented Sep 13, 2022

Sorry I don't have time for this, I'll close it..

@WindSoilder WindSoilder deleted the truecolor_friendly branch September 14, 2022 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable true-color support by default
4 participants