Change default color scheme to 'Tomorrow Night'

Fixes #3404.
This commit is contained in:
Alexey Chernyshov 2020-05-17 01:27:31 +03:00 committed by GitHub
parent 7987002dcf
commit 9a0eac0a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 41 deletions

View File

@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Mouse bindings for additional buttons need to be specified as a number not a string - Mouse bindings for additional buttons need to be specified as a number not a string
- Don't hide cursor on modifier press with `mouse.hide_when_typing` enabled - Don't hide cursor on modifier press with `mouse.hide_when_typing` enabled
- `Shift + Backspace` now sends `^?` instead of `^H` - `Shift + Backspace` now sends `^?` instead of `^H`
- Default color scheme is now `Tomorrow Night` with the bright colors of `Tomorrow Night Bright`
### Fixed ### Fixed

View File

@ -169,20 +169,20 @@
# If `true`, bold text is drawn using the bright color variants. # If `true`, bold text is drawn using the bright color variants.
#draw_bold_text_with_bright_colors: false #draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night Bright) # Colors (Tomorrow Night)
#colors: #colors:
# Default colors # Default colors
#primary: #primary:
# background: '#000000' # background: '#1d1f21'
# foreground: '#eaeaea' # foreground: '#c5c8c6'
# Bright and dim foreground colors # Bright and dim foreground colors
# #
# The dimmed foreground color is calculated automatically if it is not present. # The dimmed foreground color is calculated automatically if it is not present.
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
# is `false`, the normal foreground color will be used. # is `false`, the normal foreground color will be used.
#dim_foreground: '#9a9a9a' #dim_foreground: '#828482'
#bright_foreground: '#ffffff' #bright_foreground: '#eaeaea'
# Cursor colors # Cursor colors
# #
@ -211,39 +211,39 @@
# Normal colors # Normal colors
#normal: #normal:
# black: '#000000' # black: '#1d1f21'
# red: '#d54e53' # red: '#cc6666'
# green: '#b9ca4a' # green: '#b5bd68'
# yellow: '#e6c547' # yellow: '#f0c674'
# blue: '#7aa6da' # blue: '#81a2be'
# magenta: '#c397d8' # magenta: '#b294bb'
# cyan: '#70c0ba' # cyan: '#8abeb7'
# white: '#eaeaea' # white: '#c5c8c6'
# Bright colors # Bright colors
#bright: #bright:
# black: '#666666' # black: '#666666'
# red: '#ff3334' # red: '#d54e53'
# green: '#9ec400' # green: '#b9ca4a'
# yellow: '#e7c547' # yellow: '#e7c547'
# blue: '#7aa6da' # blue: '#7aa6da'
# magenta: '#b77ee0' # magenta: '#c397d8'
# cyan: '#54ced6' # cyan: '#70c0b1'
# white: '#ffffff' # white: '#eaeaea'
# Dim colors # Dim colors
# #
# If the dim colors are not set, they will be calculated automatically based # If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors. # on the `normal` colors.
#dim: #dim:
# black: '#000000' # black: '#131415'
# red: '#8c3336' # red: '#864343'
# green: '#7a8530' # green: '#777c44'
# yellow: '#97822e' # yellow: '#9e824c'
# blue: '#506d8f' # blue: '#556a7d'
# magenta: '#80638e' # magenta: '#75617b'
# cyan: '#497e7a' # cyan: '#5b7d78'
# white: '#9a9a9a' # white: '#828482'
# Indexed Colors # Indexed Colors
# #

View File

@ -117,11 +117,11 @@ impl Default for PrimaryColors {
} }
fn default_background() -> Rgb { fn default_background() -> Rgb {
Rgb { r: 0, g: 0, b: 0 } Rgb { r: 0x1d, g: 0x1f, b: 0x21 }
} }
fn default_foreground() -> Rgb { fn default_foreground() -> Rgb {
Rgb { r: 0xea, g: 0xea, b: 0xea } Rgb { r: 0xc5, g: 0xc8, b: 0xc6 }
} }
/// The 8-colors sections of config. /// The 8-colors sections of config.
@ -151,14 +151,14 @@ struct NormalColors(AnsiColors);
impl Default for NormalColors { impl Default for NormalColors {
fn default() -> Self { fn default() -> Self {
NormalColors(AnsiColors { NormalColors(AnsiColors {
black: Rgb { r: 0x00, g: 0x00, b: 0x00 }, black: Rgb { r: 0x1d, g: 0x1f, b: 0x21 },
red: Rgb { r: 0xd5, g: 0x4e, b: 0x53 }, red: Rgb { r: 0xcc, g: 0x66, b: 0x66 },
green: Rgb { r: 0xb9, g: 0xca, b: 0x4a }, green: Rgb { r: 0xb5, g: 0xbd, b: 0x68 },
yellow: Rgb { r: 0xe6, g: 0xc5, b: 0x47 }, yellow: Rgb { r: 0xf0, g: 0xc6, b: 0x74 },
blue: Rgb { r: 0x7a, g: 0xa6, b: 0xda }, blue: Rgb { r: 0x81, g: 0xa2, b: 0xbe },
magenta: Rgb { r: 0xc3, g: 0x97, b: 0xd8 }, magenta: Rgb { r: 0xb2, g: 0x94, b: 0xbb },
cyan: Rgb { r: 0x70, g: 0xc0, b: 0xba }, cyan: Rgb { r: 0x8a, g: 0xbe, b: 0xb7 },
white: Rgb { r: 0xea, g: 0xea, b: 0xea }, white: Rgb { r: 0xc5, g: 0xc8, b: 0xc6 },
}) })
} }
} }
@ -170,13 +170,13 @@ impl Default for BrightColors {
fn default() -> Self { fn default() -> Self {
BrightColors(AnsiColors { BrightColors(AnsiColors {
black: Rgb { r: 0x66, g: 0x66, b: 0x66 }, black: Rgb { r: 0x66, g: 0x66, b: 0x66 },
red: Rgb { r: 0xff, g: 0x33, b: 0x34 }, red: Rgb { r: 0xd5, g: 0x4e, b: 0x53 },
green: Rgb { r: 0x9e, g: 0xc4, b: 0x00 }, green: Rgb { r: 0xb9, g: 0xca, b: 0x4a },
yellow: Rgb { r: 0xe7, g: 0xc5, b: 0x47 }, yellow: Rgb { r: 0xe7, g: 0xc5, b: 0x47 },
blue: Rgb { r: 0x7a, g: 0xa6, b: 0xda }, blue: Rgb { r: 0x7a, g: 0xa6, b: 0xda },
magenta: Rgb { r: 0xb7, g: 0x7e, b: 0xe0 }, magenta: Rgb { r: 0xc3, g: 0x97, b: 0xd8 },
cyan: Rgb { r: 0x54, g: 0xce, b: 0xd6 }, cyan: Rgb { r: 0x70, g: 0xc0, b: 0xb1 },
white: Rgb { r: 0xff, g: 0xff, b: 0xff }, white: Rgb { r: 0xea, g: 0xea, b: 0xea },
}) })
} }
} }