mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Color
- Removed obsolete second index for color.
This commit is contained in:
parent
55fddd66d1
commit
e91a6a1897
2 changed files with 10 additions and 27 deletions
|
@ -39,21 +39,20 @@
|
|||
static struct
|
||||
{
|
||||
Color::color_id id;
|
||||
int string_id;
|
||||
std::string english_name;
|
||||
int index; // offset red=3 (therefore fg=33, bg=43)
|
||||
} allColors[] =
|
||||
{
|
||||
// Color.h enum i18n.h English Index
|
||||
{ Color::nocolor, 0, "none", 0},
|
||||
{ Color::black, CCOLOR_BLACK, "black", 1}, // fg 29+0 bg 39+0
|
||||
{ Color::red, CCOLOR_RED, "red", 2},
|
||||
{ Color::green, CCOLOR_GREEN, "green", 3},
|
||||
{ Color::yellow, CCOLOR_YELLOW, "yellow", 4},
|
||||
{ Color::blue, CCOLOR_BLUE, "blue", 5},
|
||||
{ Color::magenta, CCOLOR_MAGENTA, "magenta", 6},
|
||||
{ Color::cyan, CCOLOR_CYAN, "cyan", 7},
|
||||
{ Color::white, CCOLOR_WHITE, "white", 8},
|
||||
// Color.h enum English Index
|
||||
{ Color::nocolor, "none", 0},
|
||||
{ Color::black, "black", 1}, // fg 29+0 bg 39+0
|
||||
{ Color::red, "red", 2},
|
||||
{ Color::green, "green", 3},
|
||||
{ Color::yellow, "yellow", 4},
|
||||
{ Color::blue, "blue", 5},
|
||||
{ Color::magenta, "magenta", 6},
|
||||
{ Color::cyan, "cyan", 7},
|
||||
{ Color::white, "white", 8},
|
||||
|
||||
};
|
||||
|
||||
|
|
16
src/i18n.h
16
src/i18n.h
|
@ -56,21 +56,5 @@
|
|||
#include <por-PRT.h>
|
||||
#endif
|
||||
|
||||
#define CCOLOR_BOLD 500
|
||||
#define CCOLOR_UNDERLINE 501
|
||||
#define CCOLOR_ON 502
|
||||
#define CCOLOR_BRIGHT 503
|
||||
#define CCOLOR_BLACK 504
|
||||
#define CCOLOR_RED 505
|
||||
#define CCOLOR_GREEN 506
|
||||
#define CCOLOR_YELLOW 507
|
||||
#define CCOLOR_BLUE 508
|
||||
#define CCOLOR_MAGENTA 509
|
||||
#define CCOLOR_CYAN 510
|
||||
#define CCOLOR_WHITE 511
|
||||
|
||||
#define CCOLOR_OFF 520
|
||||
#define CCOLOR_UNKNOWN 521
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue