diff --git a/assets/README.md b/assets/README.md index c9563bea..2ba4b2ee 100644 --- a/assets/README.md +++ b/assets/README.md @@ -6,6 +6,7 @@ - Solarized and Monokai are based on ansi-dark with color values taken from the [pygments](https://github.com/pygments/pygments) library - [Solarized](https://github.com/pygments/pygments/blob/master/pygments/styles/solarized.py) - [Monokai](https://github.com/pygments/pygments/blob/master/pygments/styles/monokai.py) + - [Fruity](https://github.com/pygments/pygments/blob/master/pygments/styles/fruity.py) ## Tools used to create xh-demo.gif - [asciinema](https://github.com/asciinema/asciinema) for the initial recording. diff --git a/assets/fruity.tmTheme b/assets/fruity.tmTheme new file mode 100644 index 00000000..94276290 --- /dev/null +++ b/assets/fruity.tmTheme @@ -0,0 +1,168 @@ + + + + + + name + Fruity + colorSpaceName + sRGB + settings + + + settings + + foreground + #0F000000 + + + + name + Integers + scope + constant.numeric + settings + + foreground + #21000000 + + + + name + Constants + scope + constant + settings + + foreground + #CA000000 + + + + name + Strings + scope + string.quoted, punctuation.definition.string.begin, punctuation.definition.string.end + settings + + foreground + #20000000 + + + + name + Comments + scope + comment + settings + + foreground + #1C000000 + + + + name + Doctype + scope + meta.tag.sgml, entity.name.tag.doctype + settings + + foreground + #40000000 + + + + name + Tags + scope + entity.name.tag + settings + + foreground + #CA000000 + + + + name + Attributes + scope + entity.other.attribute-name + settings + + foreground + #C6000000 + + + + name + Header keys + scope + source.http http.requestheaders support.variable.http + settings + + foreground + #C6000000 + + + + name + Header values + scope + source.http http.requestheaders string.other.http + settings + + foreground + #20000000 + + + + name + HTTP + scope + keyword.other.http + settings + + foreground + #CA000000 + + + + name + HTTP version + scope + constant.numeric.http + settings + + foreground + #21000000 + + + + name + HTTP method + scope + keyword.control.http + settings + + foreground + #C6000000 + + + + name + JSON keys + scope + keyword.other.name.jsonkv + settings + + foreground + #CA000000 + + + + + \ No newline at end of file diff --git a/src/cli.rs b/src/cli.rs index b1519f3a..0eb197d4 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -772,7 +772,7 @@ arg_enum! { #[allow(non_camel_case_types)] #[derive(Debug, PartialEq, Clone, Copy)] pub enum Theme { - auto, solarized, monokai + auto, solarized, monokai, fruity } } @@ -782,6 +782,7 @@ impl Theme { Theme::auto => "ansi", Theme::solarized => "solarized", Theme::monokai => "monokai", + Theme::fruity => "fruity", } } }