Skip to content

Commit 8205076

Browse files
committed
Ticket #3159: Switch to more standard color names
For the legacy 16 colors, switch to a more standard naming that better reflects their internal 8+8 logic. Old names marked with a '-', new names marked with a '+' here: black -gray -> black +brightblack red brightred -> red brightred green brightgreen -> green brightgreen -brown -yellow -> +yellow +brightyellow blue brightblue -> blue brightblue magenta brightmagenta -> magenta brightmagenta cyan brightcyan -> cyan brightcyan -lightgray -white -> +white +brightwhite This is a backwards incompatible change. Skin and syntax highlight files need to be updated. Signed-off-by: Egmont Koblinger <egmont@gmail.com>
1 parent b6349a8 commit 8205076

126 files changed

Lines changed: 14640 additions & 14640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/man/mcedit.1.in

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -292,17 +292,17 @@ file .\e*\e\e.c C\esProgram\esFile (#include|/\e\e\e*)
292292
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
293293

294294
# default colors
295-
define comment brown
295+
define comment yellow
296296
context default
297-
keyword whole if yellow
298-
keyword whole else yellow
299-
keyword whole for yellow
300-
keyword whole while yellow
301-
keyword whole do yellow
302-
keyword whole switch yellow
303-
keyword whole case yellow
304-
keyword whole static yellow
305-
keyword whole extern yellow
297+
keyword whole if brightyellow
298+
keyword whole else brightyellow
299+
keyword whole for brightyellow
300+
keyword whole while brightyellow
301+
keyword whole do brightyellow
302+
keyword whole switch brightyellow
303+
keyword whole case brightyellow
304+
keyword whole static brightyellow
305+
keyword whole extern brightyellow
306306
keyword { brightcyan
307307
keyword } brightcyan
308308
keyword '*' green
@@ -416,9 +416,9 @@ delimiters, this keyword prevents the context from ending at the end of
416416
the lines that end in a backslash, thus allowing C preprocessor
417417
directive to continue across multiple lines.
418418
.PP
419-
The possible colors are: black, gray, red, brightred, green,
420-
brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
421-
cyan, brightcyan, lightgray and white. The special keyword "default" means
419+
The possible colors are: black, brightblack, red, brightred, green,
420+
brightgreen, yellow, brightyellow, blue, brightblue, magenta, brightmagenta,
421+
cyan, brightcyan, white and brightwhite. The special keyword "default" means
422422
the terminal's default. Another special keyword "base" means mc's main
423423
colors, it is useful as a placeholder if you want to specify attributes
424424
without modifying the background color. When 256 colors are available,

doc/man/sr/mcedit.1.in

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@ file .\e*\e\e.c C\esProgram\esFile (#include|/\e\e\e*)
274274
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
275275

276276
# подразумеване боје
277-
define comment brown
277+
define comment yellow
278278
context default
279-
keyword whole if yellow
280-
keyword whole else yellow
281-
keyword whole for yellow
282-
keyword whole while yellow
283-
keyword whole do yellow
284-
keyword whole switch yellow
285-
keyword whole case yellow
286-
keyword whole static yellow
287-
keyword whole extern yellow
279+
keyword whole if brightyellow
280+
keyword whole else brightyellow
281+
keyword whole for brightyellow
282+
keyword whole while brightyellow
283+
keyword whole do brightyellow
284+
keyword whole switch brightyellow
285+
keyword whole case brightyellow
286+
keyword whole static brightyellow
287+
keyword whole extern brightyellow
288288
keyword { brightcyan
289289
keyword } brightcyan
290290
keyword '*' green
@@ -396,8 +396,8 @@ tab\-ове и размаке преко секвенци \et и \es. Знако
396396
дозвољавајући претпроцесорској директиви C\-а да се простире преко неколико
397397
линија.
398398
.PP
399-
Могуће боје су: black, gray, red, brightred, green, brightgreen, brown, yellow,
400-
blue, brightblue, magenta, brightmagenta, cyan, brightcyan, lightgray и white.
399+
Могуће боје су: black, brightblack, red, brightred, green, brightgreen, yellow, brightyellow,
400+
blue, brightblue, magenta, brightmagenta, cyan, brightcyan, white и brightwhite.
401401
Посебна кључна реч „default“ значи подразумевану боју терминала. Друга посебна
402402
кључна реч „base“ значи основну боју ПН\-а, и корисна је као заузимач места ако
403403
желите да задате атрибуте без измене позадинске боје. Када је доступно 256 боја,

lib/tty/color-internal.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ typedef struct mc_tty_color_table_struct
5858

5959
static mc_tty_color_table_t const color_table[] = {
6060
{ "black", COLOR_BLACK },
61-
{ "gray", COLOR_BLACK + COLOR_INTENSITY },
61+
{ "brightblack", COLOR_BLACK + COLOR_INTENSITY },
6262
{ "red", COLOR_RED },
6363
{ "brightred", COLOR_RED + COLOR_INTENSITY },
6464
{ "green", COLOR_GREEN },
6565
{ "brightgreen", COLOR_GREEN + COLOR_INTENSITY },
66-
{ "brown", COLOR_YELLOW },
67-
{ "yellow", COLOR_YELLOW + COLOR_INTENSITY },
66+
{ "yellow", COLOR_YELLOW },
67+
{ "brightyellow", COLOR_YELLOW + COLOR_INTENSITY },
6868
{ "blue", COLOR_BLUE },
6969
{ "brightblue", COLOR_BLUE + COLOR_INTENSITY },
7070
{ "magenta", COLOR_MAGENTA },
7171
{ "brightmagenta", COLOR_MAGENTA + COLOR_INTENSITY },
7272
{ "cyan", COLOR_CYAN },
7373
{ "brightcyan", COLOR_CYAN + COLOR_INTENSITY },
74-
{ "lightgray", COLOR_WHITE },
75-
{ "white", COLOR_WHITE + COLOR_INTENSITY },
74+
{ "white", COLOR_WHITE },
75+
{ "brightwhite", COLOR_WHITE + COLOR_INTENSITY },
7676
{ "default", -1 }, // default color of the terminal
7777
// End of list
7878
{ NULL, 0 },

misc/skins/README.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,14 +467,14 @@ your skin to the standard 16 colors (in addition to the terminal's defaults).
467467
These colors each have two names: the preferred human-friendly one, and a
468468
technical one referring to their color index.
469469

470-
black = color0 gray = color8
470+
black = color0 brightblack = color8
471471
red = color1 brightred = color9
472472
green = color2 brightgreen = color10
473-
brown = color3 yellow = color11
473+
yellow = color3 brightyellow = color11
474474
blue = color4 brightblue = color12
475475
magenta = color5 brightmagenta = color13
476476
cyan = color6 brightcyan = color14
477-
lightgray = color7 white = color15
477+
white = color7 brightwhite = color15
478478

479479
With 8 color terminal settings (such as TERM=linux or TERM=xterm), bright
480480
foreground colors (second column) are emulated in mc by enabling the bold

misc/skins/dark.ini

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -25,119 +25,119 @@
2525
drightmiddle = ┤
2626

2727
[core]
28-
_default_ = lightgray;black
28+
_default_ = white;black
2929
selected = black;cyan
30-
marked = yellow;black
31-
markselect = yellow;cyan
32-
gauge = white;black
30+
marked = brightyellow;black
31+
markselect = brightyellow;cyan
32+
gauge = brightwhite;black
3333
input = black;cyan
34-
inputunchanged = gray;cyan
34+
inputunchanged = brightblack;cyan
3535
inputmark = cyan;black
36-
disabled = gray;blue
37-
reverse = black;lightgray
38-
commandlinemark = black;lightgray
39-
header = yellow;black
36+
disabled = brightblack;blue
37+
reverse = black;white
38+
commandlinemark = black;white
39+
header = brightyellow;black
4040
inputhistory =
4141
commandhistory =
42-
shadow = gray;black
43-
frame = lightgray;black
42+
shadow = brightblack;black
43+
frame = white;black
4444

4545
[dialog]
4646
_default_ = brightcyan;blue
4747
dfocus = blue;cyan
48-
dhotnormal = white;
49-
dhotfocus = white;cyan
48+
dhotnormal = brightwhite;
49+
dhotfocus = brightwhite;cyan
5050
dselnormal = blue;cyan
51-
dselfocus = white;cyan
52-
dtitle = white;
51+
dselfocus = brightwhite;cyan
52+
dtitle = brightwhite;
5353
dframe = brightcyan;blue
5454

5555
[error]
56-
_default_ = white;red
57-
errdfocus = black;lightgray
58-
errdhotnormal = yellow;red
59-
errdhotfocus = yellow;lightgray
60-
errdtitle = yellow;red
61-
errdframe = white;red
56+
_default_ = brightwhite;red
57+
errdfocus = black;white
58+
errdhotnormal = brightyellow;red
59+
errdhotfocus = brightyellow;white
60+
errdtitle = brightyellow;red
61+
errdframe = brightwhite;red
6262

6363
[filehighlight]
6464
_default_ =
65-
directory = white;
65+
directory = brightwhite;
6666
executable = brightmagenta;
67-
symlink = lightgray;
67+
symlink = white;
6868
hardlink =
6969
stalelink = brightred;
7070
device = brightmagenta;
7171
special = brightblue;
7272
core = red;
73-
temp = gray;
73+
temp = brightblack;
7474
archive = brightgreen;
75-
doc = brown;
75+
doc = yellow;
7676
source = cyan;
7777
media = green;
7878
graph = brightcyan;
7979
database = brightred;
8080

8181
[menu]
82-
_default_ = lightgray;blue
82+
_default_ = white;blue
8383
menusel = black;cyan
84-
menuhot = white;blue
85-
menuhotsel = white;cyan
86-
menuinactive = black;lightgray
87-
menuframe = lightgray;blue
84+
menuhot = brightwhite;blue
85+
menuhotsel = brightwhite;cyan
86+
menuinactive = black;white
87+
menuframe = white;blue
8888

8989
[popupmenu]
90-
_default_ = lightgray;blue
90+
_default_ = white;blue
9191
menusel = black;cyan
92-
menutitle = lightgray;blue
93-
menuframe = lightgray;blue
92+
menutitle = white;blue
93+
menuframe = white;blue
9494

9595
[buttonbar]
96-
hotkey = red;lightgray
97-
button = black;lightgray
96+
hotkey = red;white
97+
button = black;white
9898

9999
[statusbar]
100-
_default_ = black;lightgray
100+
_default_ = black;white
101101

102102
[help]
103-
_default_ = black;lightgray
104-
helpitalic = red;lightgray
105-
helpbold = blue;lightgray
103+
_default_ = black;white
104+
helpitalic = red;white
105+
helpbold = blue;white
106106
helplink = black;cyan
107-
helpslink = yellow;blue
108-
helptitle = blue;lightgray
109-
helpframe = black;lightgray
107+
helpslink = brightyellow;blue
108+
helptitle = blue;white
109+
helpframe = black;white
110110

111111
[editor]
112-
_default_ = lightgray;black
113-
editbold = yellow;green
114-
editmarked = black;lightgray
112+
_default_ = white;black
113+
editbold = brightyellow;green
114+
editmarked = black;white
115115
editwhitespace = brightblue;black
116116
editnonprintable = ;black
117-
editlinestate = white;cyan
118-
bookmark = white;red
117+
editlinestate = brightwhite;cyan
118+
bookmark = brightwhite;red
119119
bookmarkfound = black;green
120-
editrightmargin = white;blue
120+
editrightmargin = brightwhite;blue
121121
# editbg =
122-
editframe = gray;
123-
editframeactive = lightgray;
122+
editframe = brightblack;
123+
editframeactive = white;
124124
editframedrag = red;
125125

126126
[viewer]
127-
_default_ = lightgray;black
128-
viewbold = yellow;black
127+
_default_ = white;black
128+
viewbold = brightyellow;black
129129
viewunderline = brightred;black
130-
viewboldunderline = yellow;black
131-
viewselected = yellow;cyan
132-
viewframe = lightgray;black
130+
viewboldunderline = brightyellow;black
131+
viewselected = brightyellow;cyan
132+
viewframe = white;black
133133

134134
[diffviewer]
135-
added = white;green
135+
added = brightwhite;green
136136
changedline = blue;cyan
137137
changednew = red;cyan
138-
changed = white;cyan
139-
removed = white;red
140-
error = red;lightgray
138+
changed = brightwhite;cyan
139+
removed = brightwhite;red
140+
error = red;white
141141

142142
[widget-panel]
143143
sort-up-char = ↑

0 commit comments

Comments
 (0)