-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Truecolor friendly #1348
Conversation
@@ -72,8 +90,8 @@ impl Loader { | |||
|
|||
/// Lists all theme names available in default and user directory | |||
pub fn names(&self) -> Vec<String> { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
Is there an interest in continuing this PR? I can close it if not. |
Sorry I don't have time for this, I'll close it.. |
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:
non-truecolor
theme namedbase16-xxxx.toml
.truecolor
theme.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.