Skip to content

Commit

Permalink
Merge pull request #206 from ducaale/fruity-theme
Browse files Browse the repository at this point in the history
Add Fruity theme
  • Loading branch information
ducaale authored Dec 2, 2021
2 parents 61e5ba2 + 267f8ff commit 95b1af2
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
168 changes: 168 additions & 0 deletions assets/fruity.tmTheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!--
The colors in this theme are encoded as #RRGGBBAA where RR is an ANSI
palette number from 00 to 0f, and AA is the special value 00 to indicate
that this encoding is being used.
-->
<key>name</key>
<string>Fruity</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#0F000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Integers</string>
<key>scope</key>
<string>constant.numeric</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#21000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Constants</string>
<key>scope</key>
<string>constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CA000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Strings</string>
<key>scope</key>
<string>string.quoted, punctuation.definition.string.begin, punctuation.definition.string.end</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#20000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#1C000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Doctype</string>
<key>scope</key>
<string>meta.tag.sgml, entity.name.tag.doctype</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#40000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tags</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CA000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Attributes</string>
<key>scope</key>
<string>entity.other.attribute-name</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#C6000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Header keys</string>
<key>scope</key>
<string>source.http http.requestheaders support.variable.http</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#C6000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Header values</string>
<key>scope</key>
<string>source.http http.requestheaders string.other.http</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#20000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>HTTP</string>
<key>scope</key>
<string>keyword.other.http</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CA000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>HTTP version</string>
<key>scope</key>
<string>constant.numeric.http</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#21000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>HTTP method</string>
<key>scope</key>
<string>keyword.control.http</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#C6000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON keys</string>
<key>scope</key>
<string>keyword.other.name.jsonkv</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CA000000</string>
</dict>
</dict>
</array>
</dict>
</plist>
3 changes: 2 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand All @@ -782,6 +782,7 @@ impl Theme {
Theme::auto => "ansi",
Theme::solarized => "solarized",
Theme::monokai => "monokai",
Theme::fruity => "fruity",
}
}
}
Expand Down

0 comments on commit 95b1af2

Please sign in to comment.