-
Notifications
You must be signed in to change notification settings - Fork 398
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
feat: Solarized themes #68
Conversation
adding Solarized (light/dark) themes from https://github.com/paulcpederson/solarized-sublime
Awesome, thanks! I believe we want to add diff --git a/src/style.rs b/src/style.rs
index 4868d12..bbb05a2 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -1,10 +1,11 @@
use syntect::highlighting::{Color, FontStyle, Style, StyleModifier};
-pub const LIGHT_THEMES: [&str; 4] = [
+pub const LIGHT_THEMES: [&str; 5] = [
"GitHub",
"Monokai Extended Light",
"OneHalfLight",
"ansi-light",
+ "Solarized (light)",
];
pub const DEFAULT_LIGHT_THEME: &str = "GitHub"; (or you can add me as a collaborator on your fork/PR; I'm not quite sure what the workflow is supposed to be in this situation.) |
Do you know whether it would make sense to add these themes to bat also, or have a suspicion why it hasn't been done already? I think there are some considerations regarding color themes for terminal emulators that I haven't understood yet (see e.g. sharkdp/bat#490). |
the color schemes should not look dramatically different; one of the features of Solarized is that its overall look and feel does not change when switching from light to dark mode (https://ethanschoonover.com/solarized/#features) see the difference between the two different versions of the same content? in the dark mode (upper image) the base text is Solarized color "base 0", in the light mode the base text is Solarized color "base 00" |
i'm not opposed to opening a similar PR against bat; the message i took from the bat documentation was that the author wants people to compile their own theme/style bundles and load them at runtime, whereas with delta the theme and style bundles are compiled in. |
Thanks!
There are definitely accepted PRs adding themes to bat. cc @sharkdp would adding solarized themes to bat be a helpful contribution?
Right, currently. But I intend to (a) support all themes that bat supports by default (i.e. update delta periodically to match bat) and (b) support reading custom themes and syntaxes from the same directory that bat uses ( |
done! sharkdp/bat#768 |
adding Solarized (light/dark) themes from
https://github.com/paulcpederson/solarized-sublime