diff --git a/lib/skin.h b/lib/skin.h
index 024e0c506..8709e8e9d 100644
a
|
b
|
|
87 | 87 | * Last is defined to view color. |
88 | 88 | */ |
89 | 89 | #define EDITOR_NORMAL_COLOR mc_skin_color__cache[49] |
90 | | #define EDITOR_BOLD_COLOR mc_skin_color__cache[50] |
91 | | #define EDITOR_MARKED_COLOR mc_skin_color__cache[51] |
92 | | #define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[52] |
93 | | #define EDITOR_RIGHT_MARGIN_COLOR mc_skin_color__cache[53] |
94 | | #define EDITOR_BACKGROUND mc_skin_color__cache[54] |
95 | | #define EDITOR_FRAME mc_skin_color__cache[55] |
96 | | #define EDITOR_FRAME_ACTIVE mc_skin_color__cache[56] |
97 | | #define EDITOR_FRAME_DRAG mc_skin_color__cache[57] |
| 90 | #define EDITOR_ABNORMAL_COLOR mc_skin_color__cache[50] |
| 91 | #define EDITOR_BOLD_COLOR mc_skin_color__cache[51] |
| 92 | #define EDITOR_MARKED_COLOR mc_skin_color__cache[52] |
| 93 | #define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[53] |
| 94 | #define EDITOR_RIGHT_MARGIN_COLOR mc_skin_color__cache[54] |
| 95 | #define EDITOR_BACKGROUND mc_skin_color__cache[55] |
| 96 | #define EDITOR_FRAME mc_skin_color__cache[56] |
| 97 | #define EDITOR_FRAME_ACTIVE mc_skin_color__cache[57] |
| 98 | #define EDITOR_FRAME_DRAG mc_skin_color__cache[58] |
98 | 99 | /* color of left 8 char status per line */ |
99 | | #define LINE_STATE_COLOR mc_skin_color__cache[58] |
100 | | #define BOOK_MARK_COLOR mc_skin_color__cache[59] |
101 | | #define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[60] |
| 100 | #define LINE_STATE_COLOR mc_skin_color__cache[59] |
| 101 | #define BOOK_MARK_COLOR mc_skin_color__cache[60] |
| 102 | #define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[61] |
102 | 103 | |
103 | 104 | /* Diff colors */ |
104 | | #define DFF_ADD_COLOR mc_skin_color__cache[61] |
105 | | #define DFF_CHG_COLOR mc_skin_color__cache[62] |
106 | | #define DFF_CHH_COLOR mc_skin_color__cache[63] |
107 | | #define DFF_CHD_COLOR mc_skin_color__cache[64] |
108 | | #define DFF_DEL_COLOR mc_skin_color__cache[65] |
109 | | #define DFF_ERROR_COLOR mc_skin_color__cache[66] |
110 | | |
111 | | #define MC_SKIN_COLOR_CACHE_COUNT 67 |
| 105 | #define DFF_ADD_COLOR mc_skin_color__cache[62] |
| 106 | #define DFF_CHG_COLOR mc_skin_color__cache[63] |
| 107 | #define DFF_CHH_COLOR mc_skin_color__cache[64] |
| 108 | #define DFF_CHD_COLOR mc_skin_color__cache[65] |
| 109 | #define DFF_DEL_COLOR mc_skin_color__cache[66] |
| 110 | #define DFF_ERROR_COLOR mc_skin_color__cache[67] |
| 111 | |
| 112 | #define MC_SKIN_COLOR_CACHE_COUNT 68 |
112 | 113 | |
113 | 114 | /*** enums ***************************************************************************************/ |
114 | 115 | |
diff --git a/lib/skin/colors-old.c b/lib/skin/colors-old.c
index 314c8cb85..12cac4a09 100644
a
|
b
|
static const mc_skin_colors_old_t old_colors[] = { |
60 | 60 | {"dhotnormal", "dialog", "dhotnormal"}, |
61 | 61 | {"disabled", "core", "disabled"}, |
62 | 62 | {"dnormal", "dialog", "_default_"}, |
| 63 | {"editabnormal", "editor", "editabnormal"}, |
63 | 64 | {"editbg", "editor", "editbg"}, |
64 | 65 | {"editbold", "editor", "editbold"}, |
65 | 66 | {"editframe", "editor", "editframe"}, |
diff --git a/lib/skin/colors.c b/lib/skin/colors.c
index 1d4f905d6..cd52c6b93 100644
a
|
b
|
mc_skin_color_cache_init (void) |
298 | 298 | VIEW_SELECTED_COLOR = mc_skin_color_get ("viewer", "viewselected"); |
299 | 299 | |
300 | 300 | EDITOR_NORMAL_COLOR = mc_skin_color_get ("editor", "_default_"); |
| 301 | EDITOR_ABNORMAL_COLOR = mc_skin_color_get ("editor", "editabnormal"); |
301 | 302 | EDITOR_BOLD_COLOR = mc_skin_color_get ("editor", "editbold"); |
302 | 303 | EDITOR_MARKED_COLOR = mc_skin_color_get ("editor", "editmarked"); |
303 | 304 | EDITOR_WHITESPACE_COLOR = mc_skin_color_get ("editor", "editwhitespace"); |
diff --git a/misc/skins/default.ini b/misc/skins/default.ini
index 145eb998b..67bd72ebf 100644
a
|
b
|
|
112 | 112 | # editframe = lightgray; |
113 | 113 | editframeactive = white; |
114 | 114 | editframedrag = green; |
| 115 | editabnormal = green;cyan |
115 | 116 | |
116 | 117 | [viewer] |
117 | 118 | _default_ = lightgray;blue |
diff --git a/src/args.c b/src/args.c
index e725fa7d8..ee97e5ee8 100644
a
|
b
|
mc_args_new_color_group (void) |
344 | 344 | " errdhotfocus\n" |
345 | 345 | " Menus: menunormal, menuhot, menusel, menuhotsel, menuinactive\n" |
346 | 346 | " Popup menus: pmenunormal, pmenusel, pmenutitle\n" |
347 | | " Editor: editnormal, editbold, editmarked, editwhitespace,\n" |
| 347 | " Editor: editnormal, editabnormal,editbold, editmarked, editwhitespace,\n" |
348 | 348 | " editlinestate, editbg, editframe, editframeactive\n" |
349 | 349 | " editframedrag\n" |
350 | 350 | " Viewer: viewnormal,viewbold, viewunderline, viewselected\n" |
diff --git a/src/editor/editdraw.c b/src/editor/editdraw.c
index b4ec402f0..73e7de3cb 100644
a
|
b
|
print_to_widget (WEdit * edit, long row, int start_col, int start_col_real, |
455 | 455 | { |
456 | 456 | int style; |
457 | 457 | unsigned int textchar; |
458 | | int color; |
459 | 458 | |
460 | 459 | if (cols_to_skip != 0) |
461 | 460 | { |
… |
… |
print_to_widget (WEdit * edit, long row, int start_col, int start_col_real, |
465 | 464 | |
466 | 465 | style = p->style & 0xFF00; |
467 | 466 | textchar = p->ch; |
468 | | /* If non-printable - use black background */ |
469 | | color = (style & MOD_ABNORMAL) != 0 ? 0 : p->style >> 16; |
470 | 467 | |
471 | 468 | if ((style & MOD_WHITESPACE) != 0) |
472 | 469 | { |
… |
… |
print_to_widget (WEdit * edit, long row, int start_col, int start_col_real, |
482 | 479 | tty_setcolor (EDITOR_BOLD_COLOR); |
483 | 480 | else if ((style & MOD_MARKED) != 0) |
484 | 481 | tty_setcolor (EDITOR_MARKED_COLOR); |
| 482 | else if ((style & MOD_ABNORMAL) != 0) |
| 483 | tty_setcolor (EDITOR_ABNORMAL_COLOR); |
485 | 484 | else |
486 | | tty_lowlevel_setcolor (color); |
| 485 | tty_lowlevel_setcolor (p->style >> 16); |
487 | 486 | |
488 | 487 | if (show_right_margin) |
489 | 488 | { |