Rename br* colors to bright-*
This commit is contained in:
parent
2ab04277d6
commit
74202fab45
|
@ -1046,7 +1046,7 @@ fg_color[,bg_color][+attributes]
|
||||||
fg_color and bg_color can be:
|
fg_color and bg_color can be:
|
||||||
|
|
||||||
* A named color: `black, red, green, yellow, blue, magenta, cyan, white`.
|
* A named color: `black, red, green, yellow, blue, magenta, cyan, white`.
|
||||||
* A named bright color: `brblack, brred, brgreen, bryellow, brblue, brmagenta, brcyan, brwhite`.
|
* A named bright color: `bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white`.
|
||||||
* `default`, which keeps the existing color
|
* `default`, which keeps the existing color
|
||||||
* An rgb color: `rgb:RRGGBB`, with RRGGBB the hexadecimal value of the color.
|
* An rgb color: `rgb:RRGGBB`, with RRGGBB the hexadecimal value of the color.
|
||||||
|
|
||||||
|
|
16
src/color.cc
16
src/color.cc
|
@ -19,14 +19,14 @@ static constexpr const char* color_names[] = {
|
||||||
"magenta",
|
"magenta",
|
||||||
"cyan",
|
"cyan",
|
||||||
"white",
|
"white",
|
||||||
"brblack",
|
"bright-black",
|
||||||
"brred",
|
"bright-red",
|
||||||
"brgreen",
|
"bright-green",
|
||||||
"bryellow",
|
"bright-yellow",
|
||||||
"brblue",
|
"bright-blue",
|
||||||
"brmagenta",
|
"bright-magenta",
|
||||||
"brcyan",
|
"bright-cyan",
|
||||||
"brwhite",
|
"bright-white",
|
||||||
};
|
};
|
||||||
|
|
||||||
bool is_color_name(StringView color)
|
bool is_color_name(StringView color)
|
||||||
|
|
16
src/color.hh
16
src/color.hh
|
@ -22,14 +22,14 @@ struct Color
|
||||||
Magenta,
|
Magenta,
|
||||||
Cyan,
|
Cyan,
|
||||||
White,
|
White,
|
||||||
BrBlack,
|
BrightBlack,
|
||||||
BrRed,
|
BrightRed,
|
||||||
BrGreen,
|
BrightGreen,
|
||||||
BrYellow,
|
BrightYellow,
|
||||||
BrBlue,
|
BrightBlue,
|
||||||
BrMagenta,
|
BrightMagenta,
|
||||||
BrCyan,
|
BrightCyan,
|
||||||
BrWhite,
|
BrightWhite,
|
||||||
RGB,
|
RGB,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -230,22 +230,22 @@ void on_term_resize(int)
|
||||||
static const std::initializer_list<HashMap<Kakoune::Color, int>::Item>
|
static const std::initializer_list<HashMap<Kakoune::Color, int>::Item>
|
||||||
default_colors = {
|
default_colors = {
|
||||||
{ Color::Default, -1 },
|
{ Color::Default, -1 },
|
||||||
{ Color::Black, COLOR_BLACK },
|
{ Color::Black, 0 },
|
||||||
{ Color::Red, COLOR_RED },
|
{ Color::Red, 1 },
|
||||||
{ Color::Green, COLOR_GREEN },
|
{ Color::Green, 2 },
|
||||||
{ Color::Yellow, COLOR_YELLOW },
|
{ Color::Yellow, 3 },
|
||||||
{ Color::Blue, COLOR_BLUE },
|
{ Color::Blue, 4 },
|
||||||
{ Color::Magenta, COLOR_MAGENTA },
|
{ Color::Magenta, 5 },
|
||||||
{ Color::Cyan, COLOR_CYAN },
|
{ Color::Cyan, 6 },
|
||||||
{ Color::White, COLOR_WHITE },
|
{ Color::White, 7 },
|
||||||
{ Color::BrBlack, 8 },
|
{ Color::BrightBlack, 8 },
|
||||||
{ Color::BrRed, 9 },
|
{ Color::BrightRed, 9 },
|
||||||
{ Color::BrGreen, 10 },
|
{ Color::BrightGreen, 10 },
|
||||||
{ Color::BrYellow, 11 },
|
{ Color::BrightYellow, 11 },
|
||||||
{ Color::BrBlue, 12 },
|
{ Color::BrightBlue, 12 },
|
||||||
{ Color::BrMagenta, 13 },
|
{ Color::BrightMagenta, 13 },
|
||||||
{ Color::BrCyan, 14 },
|
{ Color::BrightCyan, 14 },
|
||||||
{ Color::BrWhite, 15 },
|
{ Color::BrightWhite, 15 },
|
||||||
};
|
};
|
||||||
|
|
||||||
NCursesUI::NCursesUI()
|
NCursesUI::NCursesUI()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user