mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Remove docs for 0xRRGGBB color notation
This commit is contained in:
parent
e3f095ca96
commit
17b8bbb908
2 changed files with 36 additions and 36 deletions
|
@ -183,24 +183,24 @@
|
|||
#colors:
|
||||
# Default colors
|
||||
#primary:
|
||||
# background: '0x000000'
|
||||
# foreground: '0xeaeaea'
|
||||
# background: '#000000'
|
||||
# foreground: '#eaeaea'
|
||||
|
||||
# Bright and dim foreground colors
|
||||
#
|
||||
# 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`
|
||||
# is `false`, the normal foreground color will be used.
|
||||
#dim_foreground: '0x9a9a9a'
|
||||
#bright_foreground: '0xffffff'
|
||||
#dim_foreground: '#9a9a9a'
|
||||
#bright_foreground: '#ffffff'
|
||||
|
||||
# Cursor colors
|
||||
#
|
||||
# Colors which should be used to draw the terminal cursor. If these are unset,
|
||||
# the cursor color will be the inverse of the cell color.
|
||||
#cursor:
|
||||
# text: '0x000000'
|
||||
# cursor: '0xffffff'
|
||||
# text: '#000000'
|
||||
# cursor: '#ffffff'
|
||||
|
||||
# Selection colors
|
||||
#
|
||||
|
@ -208,44 +208,44 @@
|
|||
# background is unset, selection color will be the inverse of the cell colors.
|
||||
# If only text is unset the cell text color will remain the same.
|
||||
#selection:
|
||||
# text: '0xeaeaea'
|
||||
# background: '0x404040'
|
||||
# text: '#eaeaea'
|
||||
# background: '#404040'
|
||||
|
||||
# Normal colors
|
||||
#normal:
|
||||
# black: '0x000000'
|
||||
# red: '0xd54e53'
|
||||
# green: '0xb9ca4a'
|
||||
# yellow: '0xe6c547'
|
||||
# blue: '0x7aa6da'
|
||||
# magenta: '0xc397d8'
|
||||
# cyan: '0x70c0ba'
|
||||
# white: '0xeaeaea'
|
||||
# black: '#000000'
|
||||
# red: '#d54e53'
|
||||
# green: '#b9ca4a'
|
||||
# yellow: '#e6c547'
|
||||
# blue: '#7aa6da'
|
||||
# magenta: '#c397d8'
|
||||
# cyan: '#70c0ba'
|
||||
# white: '#eaeaea'
|
||||
|
||||
# Bright colors
|
||||
#bright:
|
||||
# black: '0x666666'
|
||||
# red: '0xff3334'
|
||||
# green: '0x9ec400'
|
||||
# yellow: '0xe7c547'
|
||||
# blue: '0x7aa6da'
|
||||
# magenta: '0xb77ee0'
|
||||
# cyan: '0x54ced6'
|
||||
# white: '0xffffff'
|
||||
# black: '#666666'
|
||||
# red: '#ff3334'
|
||||
# green: '#9ec400'
|
||||
# yellow: '#e7c547'
|
||||
# blue: '#7aa6da'
|
||||
# magenta: '#b77ee0'
|
||||
# cyan: '#54ced6'
|
||||
# white: '#ffffff'
|
||||
|
||||
# Dim colors
|
||||
#
|
||||
# If the dim colors are not set, they will be calculated automatically based
|
||||
# on the `normal` colors.
|
||||
#dim:
|
||||
# black: '0x000000'
|
||||
# red: '0x8c3336'
|
||||
# green: '0x7a8530'
|
||||
# yellow: '0x97822e'
|
||||
# blue: '0x506d8f'
|
||||
# magenta: '0x80638e'
|
||||
# cyan: '0x497e7a'
|
||||
# white: '0x9a9a9a'
|
||||
# black: '#000000'
|
||||
# red: '#8c3336'
|
||||
# green: '#7a8530'
|
||||
# yellow: '#97822e'
|
||||
# blue: '#506d8f'
|
||||
# magenta: '#80638e'
|
||||
# cyan: '#497e7a'
|
||||
# white: '#9a9a9a'
|
||||
|
||||
# Indexed Colors
|
||||
#
|
||||
|
@ -253,7 +253,7 @@
|
|||
# When these are not set, they're filled with sensible defaults.
|
||||
#
|
||||
# Example:
|
||||
# `- { index: 16, color: '0xff00ff' }`
|
||||
# `- { index: 16, color: '#ff00ff' }`
|
||||
#
|
||||
#indexed_colors: []
|
||||
|
||||
|
@ -281,7 +281,7 @@
|
|||
#visual_bell:
|
||||
# animation: EaseOutExpo
|
||||
# duration: 0
|
||||
# color: '0xffffff'
|
||||
# color: '#ffffff'
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
|
|
|
@ -61,7 +61,7 @@ impl<'de> Deserialize<'de> for Rgb {
|
|||
type Value = Rgb;
|
||||
|
||||
fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("hex color like 0xff00ff")
|
||||
f.write_str("hex color like #ff00ff")
|
||||
}
|
||||
|
||||
fn visit_str<E>(self, value: &str) -> ::std::result::Result<Rgb, E>
|
||||
|
@ -69,7 +69,7 @@ impl<'de> Deserialize<'de> for Rgb {
|
|||
E: ::serde::de::Error,
|
||||
{
|
||||
Rgb::from_str(&value[..])
|
||||
.map_err(|_| E::custom("failed to parse rgb; expected hex color like 0xff00ff"))
|
||||
.map_err(|_| E::custom("failed to parse rgb; expected hex color like #ff00ff"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue