-
diff -ur mc-4.7.0.7.orig/lib/skin/colors.c mc-4.7.0.7/lib/skin/colors.c
old
|
new
|
|
181 | 181 | SELECTED_COLOR = mc_skin_color_get ("core", "selected"); |
182 | 182 | MARKED_SELECTED_COLOR = mc_skin_color_get ("core", "markselect"); |
183 | 183 | REVERSE_COLOR = mc_skin_color_get ("core", "reverse"); |
| 184 | HEADER_COLOR = mc_skin_color_get ("core", "header"); |
184 | 185 | |
185 | 186 | COLOR_NORMAL = mc_skin_color_get ("dialog", "_default_"); |
186 | 187 | COLOR_FOCUS = mc_skin_color_get ("dialog", "dfocus"); |
187 | 188 | COLOR_HOT_NORMAL = mc_skin_color_get ("dialog", "dhotnormal"); |
188 | 189 | COLOR_HOT_FOCUS = mc_skin_color_get ("dialog", "dhotfocus"); |
| 190 | COLOR_TITLE = mc_skin_color_get ("dialog", "dtitle"); |
189 | 191 | |
190 | 192 | ERROR_COLOR = mc_skin_color_get ("error", "_default_"); |
| 193 | ERROR_FOCUS = mc_skin_color_get ("error", "errdfocus"); |
191 | 194 | ERROR_HOT_NORMAL = mc_skin_color_get ("error", "errdhotnormal"); |
192 | 195 | ERROR_HOT_FOCUS = mc_skin_color_get ("error", "errdhotfocus"); |
| 196 | ERROR_TITLE = mc_skin_color_get ("error", "errdtitle"); |
193 | 197 | |
194 | 198 | MENU_ENTRY_COLOR = mc_skin_color_get ("menu", "_default_"); |
195 | 199 | MENU_SELECTED_COLOR = mc_skin_color_get ("menu", "menusel"); |
… |
… |
|
199 | 203 | |
200 | 204 | GAUGE_COLOR = mc_skin_color_get ("core", "gauge"); |
201 | 205 | INPUT_COLOR = mc_skin_color_get ("core", "input"); |
| 206 | INPUT_HISTORY_COLOR = mc_skin_color_get ("core", "inputhistory"); |
| 207 | COMMAND_HISTORY_COLOR = mc_skin_color_get ("core", "commandhistory"); |
202 | 208 | |
203 | 209 | HELP_NORMAL_COLOR = mc_skin_color_get ("help", "_default_"); |
204 | 210 | HELP_ITALIC_COLOR = mc_skin_color_get ("help", "helpitalic"); |
205 | 211 | HELP_BOLD_COLOR = mc_skin_color_get ("help", "helpbold"); |
206 | 212 | HELP_LINK_COLOR = mc_skin_color_get ("help", "helplink"); |
207 | 213 | HELP_SLINK_COLOR = mc_skin_color_get ("help", "helpslink"); |
| 214 | HELP_TITLE_COLOR = mc_skin_color_get ("help", "helptitle"); |
208 | 215 | |
| 216 | VIEW_BOLD_COLOR = mc_skin_color_get ("viewer", "viewbold"); |
209 | 217 | VIEW_UNDERLINED_COLOR = mc_skin_color_get ("viewer", "viewunderline"); |
| 218 | VIEW_SELECTED_COLOR = mc_skin_color_get ("viewer", "viewselected"); |
210 | 219 | |
211 | 220 | EDITOR_NORMAL_COLOR = mc_skin_color_get ("editor", "_default_"); |
212 | 221 | EDITOR_BOLD_COLOR = mc_skin_color_get ("editor", "editbold"); |
-
diff -ur mc-4.7.0.7.orig/lib/skin.h mc-4.7.0.7/lib/skin.h
old
|
new
|
|
19 | 19 | #define SELECTED_COLOR mc_skin_color__cache[3] |
20 | 20 | #define MARKED_SELECTED_COLOR mc_skin_color__cache[4] |
21 | 21 | #define REVERSE_COLOR mc_skin_color__cache[5] |
| 22 | #define HEADER_COLOR mc_skin_color__cache[6] |
22 | 23 | |
23 | 24 | /* Dialog colors */ |
24 | | #define COLOR_NORMAL mc_skin_color__cache[6] |
25 | | #define COLOR_FOCUS mc_skin_color__cache[7] |
26 | | #define COLOR_HOT_NORMAL mc_skin_color__cache[8] |
27 | | #define COLOR_HOT_FOCUS mc_skin_color__cache[9] |
| 25 | #define COLOR_NORMAL mc_skin_color__cache[7] |
| 26 | #define COLOR_FOCUS mc_skin_color__cache[8] |
| 27 | #define COLOR_HOT_NORMAL mc_skin_color__cache[9] |
| 28 | #define COLOR_HOT_FOCUS mc_skin_color__cache[10] |
| 29 | #define COLOR_TITLE mc_skin_color__cache[11] |
28 | 30 | |
29 | 31 | /* Error dialog colors */ |
30 | | #define ERROR_COLOR mc_skin_color__cache[10] |
31 | | #define ERROR_HOT_NORMAL mc_skin_color__cache[11] |
32 | | #define ERROR_HOT_FOCUS mc_skin_color__cache[12] |
| 32 | #define ERROR_COLOR mc_skin_color__cache[12] |
| 33 | #define ERROR_FOCUS mc_skin_color__cache[13] |
| 34 | #define ERROR_HOT_NORMAL mc_skin_color__cache[14] |
| 35 | #define ERROR_HOT_FOCUS mc_skin_color__cache[15] |
| 36 | #define ERROR_TITLE mc_skin_color__cache[16] |
33 | 37 | |
34 | 38 | /* Menu colors */ |
35 | | #define MENU_ENTRY_COLOR mc_skin_color__cache[13] |
36 | | #define MENU_SELECTED_COLOR mc_skin_color__cache[14] |
37 | | #define MENU_HOT_COLOR mc_skin_color__cache[15] |
38 | | #define MENU_HOTSEL_COLOR mc_skin_color__cache[16] |
39 | | #define MENU_INACTIVE_COLOR mc_skin_color__cache[17] |
| 39 | #define MENU_ENTRY_COLOR mc_skin_color__cache[17] |
| 40 | #define MENU_SELECTED_COLOR mc_skin_color__cache[18] |
| 41 | #define MENU_HOT_COLOR mc_skin_color__cache[19] |
| 42 | #define MENU_HOTSEL_COLOR mc_skin_color__cache[20] |
| 43 | #define MENU_INACTIVE_COLOR mc_skin_color__cache[21] |
40 | 44 | |
41 | 45 | /* |
42 | 46 | * This should be selectable independently. Default has to be black background |
43 | 47 | * foreground does not matter at all. |
44 | 48 | */ |
45 | | #define GAUGE_COLOR mc_skin_color__cache[18] |
46 | | #define INPUT_COLOR mc_skin_color__cache[19] |
47 | | |
48 | | #define HELP_NORMAL_COLOR mc_skin_color__cache[20] |
49 | | #define HELP_ITALIC_COLOR mc_skin_color__cache[21] |
50 | | #define HELP_BOLD_COLOR mc_skin_color__cache[22] |
51 | | #define HELP_LINK_COLOR mc_skin_color__cache[23] |
52 | | #define HELP_SLINK_COLOR mc_skin_color__cache[24] |
53 | | |
54 | | #define VIEW_UNDERLINED_COLOR mc_skin_color__cache[25] |
| 49 | #define GAUGE_COLOR mc_skin_color__cache[22] |
| 50 | #define INPUT_COLOR mc_skin_color__cache[23] |
| 51 | #define INPUT_HISTORY_COLOR mc_skin_color__cache[24] |
| 52 | #define COMMAND_HISTORY_COLOR mc_skin_color__cache[25] |
| 53 | |
| 54 | #define HELP_NORMAL_COLOR mc_skin_color__cache[26] |
| 55 | #define HELP_ITALIC_COLOR mc_skin_color__cache[27] |
| 56 | #define HELP_BOLD_COLOR mc_skin_color__cache[28] |
| 57 | #define HELP_LINK_COLOR mc_skin_color__cache[29] |
| 58 | #define HELP_SLINK_COLOR mc_skin_color__cache[30] |
| 59 | #define HELP_TITLE_COLOR mc_skin_color__cache[31] |
| 60 | |
| 61 | #define VIEW_BOLD_COLOR mc_skin_color__cache[32] |
| 62 | #define VIEW_UNDERLINED_COLOR mc_skin_color__cache[33] |
| 63 | #define VIEW_SELECTED_COLOR mc_skin_color__cache[34] |
55 | 64 | |
56 | 65 | /* |
57 | 66 | * editor colors - only 4 for normal, search->found, select, and whitespace |
58 | 67 | * respectively |
59 | 68 | * Last is defined to view color. |
60 | 69 | */ |
61 | | #define EDITOR_NORMAL_COLOR mc_skin_color__cache[26] |
62 | | #define EDITOR_BOLD_COLOR mc_skin_color__cache[27] |
63 | | #define EDITOR_MARKED_COLOR mc_skin_color__cache[28] |
64 | | #define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[29] |
| 70 | #define EDITOR_NORMAL_COLOR mc_skin_color__cache[35] |
| 71 | #define EDITOR_BOLD_COLOR mc_skin_color__cache[36] |
| 72 | #define EDITOR_MARKED_COLOR mc_skin_color__cache[37] |
| 73 | #define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[38] |
65 | 74 | /* color of left 8 char status per line */ |
66 | | #define LINE_STATE_COLOR mc_skin_color__cache[30] |
67 | | #define BOOK_MARK_COLOR mc_skin_color__cache[31] |
68 | | #define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[32] |
| 75 | #define LINE_STATE_COLOR mc_skin_color__cache[39] |
| 76 | #define BOOK_MARK_COLOR mc_skin_color__cache[40] |
| 77 | #define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[41] |
69 | 78 | |
70 | | #define BUTTONBAR_HOTKEY_COLOR mc_skin_color__cache[33] |
71 | | #define BUTTONBAR_BUTTON_COLOR mc_skin_color__cache[34] |
| 79 | #define BUTTONBAR_HOTKEY_COLOR mc_skin_color__cache[42] |
| 80 | #define BUTTONBAR_BUTTON_COLOR mc_skin_color__cache[43] |
72 | 81 | |
73 | | #define MC_SKIN_COLOR_CACHE_COUNT 35 |
| 82 | #define MC_SKIN_COLOR_CACHE_COUNT 44 |
74 | 83 | |
75 | 84 | |
76 | 85 | /*** enums ***************************************************************************************/ |
-
diff -ur mc-4.7.0.7.orig/misc/skins/darkfar.ini mc-4.7.0.7/misc/skins/darkfar.ini
old
|
new
|
|
24 | 24 | gauge=white;black |
25 | 25 | input=black;cyan |
26 | 26 | reverse=black;lightgray |
| 27 | header=yellow;black |
| 28 | inputhistory= |
| 29 | commandhistory= |
27 | 30 | |
28 | 31 | [dialog] |
29 | 32 | _default_=brightcyan;blue |
30 | 33 | dfocus=blue;cyan |
31 | 34 | dhotnormal=white; |
32 | 35 | dhotfocus=white;cyan |
| 36 | dtitle=white; |
33 | 37 | |
34 | 38 | [error] |
35 | 39 | _default_=white;red |
| 40 | errdfocus=black;lightgray |
36 | 41 | errdhotnormal=yellow;red |
37 | 42 | errdhotfocus=yellow;lightgray |
| 43 | errdtitle=yellow;red |
38 | 44 | |
39 | 45 | [filehighlight] |
40 | 46 | directory=white; |
… |
… |
|
65 | 71 | helpbold=blue;lightgray |
66 | 72 | helplink=black;cyan |
67 | 73 | helpslink=yellow;blue |
| 74 | helptitle=blue;lightgray |
68 | 75 | |
69 | 76 | [editor] |
70 | 77 | _default_=lightgray;black |
… |
… |
|
76 | 83 | bookmarkfound=black;green |
77 | 84 | |
78 | 85 | [viewer] |
| 86 | viewbold=yellow;black |
79 | 87 | viewunderline=brightred;black |
| 88 | viewselected=yellow;cyan |
80 | 89 | |
81 | 90 | [buttonbar] |
82 | 91 | hotkey=red;white |
-
diff -ur mc-4.7.0.7.orig/misc/skins/default.ini mc-4.7.0.7/misc/skins/default.ini
old
|
new
|
|
24 | 24 | gauge=white;black |
25 | 25 | input=black;cyan |
26 | 26 | reverse=black;lightgray |
| 27 | header=yellow;blue |
| 28 | inputhistory= |
| 29 | commandhistory= |
27 | 30 | |
28 | 31 | [dialog] |
29 | 32 | _default_=black;lightgray |
30 | 33 | dfocus=black;cyan |
31 | 34 | dhotnormal=blue;lightgray |
32 | 35 | dhotfocus=blue;cyan |
| 36 | dtitle=blue;lightgray |
33 | 37 | |
34 | 38 | [error] |
35 | 39 | _default_=white;red |
| 40 | errdfocus=black;lightgray |
36 | 41 | errdhotnormal=yellow;red |
37 | 42 | errdhotfocus=yellow;lightgray |
| 43 | errdtitle=yellow;red |
38 | 44 | |
39 | 45 | |
40 | 46 | [filehighlight] |
… |
… |
|
70 | 76 | helpbold=blue;lightgray |
71 | 77 | helplink=black;cyan |
72 | 78 | helpslink=yellow;blue |
| 79 | helptitle=blue;lightgray |
73 | 80 | |
74 | 81 | [editor] |
75 | 82 | _default_=lightgray;blue |
… |
… |
|
81 | 88 | bookmarkfound=black;green |
82 | 89 | |
83 | 90 | [viewer] |
| 91 | viewbold=yellow;blue |
84 | 92 | viewunderline=brightred;blue |
| 93 | viewselected=yellow;cyan |
85 | 94 | |
86 | 95 | [widget-common] |
87 | 96 | sort-sign-up = ' |
-
diff -ur mc-4.7.0.7.orig/misc/skins/double-lines.ini mc-4.7.0.7/misc/skins/double-lines.ini
old
|
new
|
|
24 | 24 | gauge=white;black |
25 | 25 | input=black;cyan |
26 | 26 | reverse=black;lightgray |
| 27 | header=yellow;blue |
| 28 | inputhistory= |
| 29 | commandhistory= |
27 | 30 | |
28 | 31 | [dialog] |
29 | 32 | _default_=black;lightgray |
30 | 33 | dfocus=black;cyan |
31 | 34 | dhotnormal=blue;lightgray |
32 | 35 | dhotfocus=blue;cyan |
| 36 | dtitle=blue;lightgray |
33 | 37 | |
34 | 38 | [error] |
35 | 39 | _default_=white;red |
| 40 | errdfocus=black;lightgray |
36 | 41 | errdhotnormal=yellow;red |
37 | 42 | errdhotfocus=yellow;lightgray |
| 43 | errdtitle=yellow;red |
38 | 44 | |
39 | 45 | |
40 | 46 | [filehighlight] |
… |
… |
|
66 | 72 | helpbold=blue;lightgray |
67 | 73 | helplink=black;cyan |
68 | 74 | helpslink=yellow;blue |
| 75 | helptitle=blue;lightgray |
69 | 76 | |
70 | 77 | [editor] |
71 | 78 | _default_=lightgray;blue |
… |
… |
|
77 | 84 | bookmarkfound=black;green |
78 | 85 | |
79 | 86 | [viewer] |
| 87 | viewbold=yellow;blue |
80 | 88 | viewunderline=brightred;blue |
| 89 | viewselected=yellow;cyan |
81 | 90 | |
82 | 91 | [widget-common] |
83 | 92 | sort-sign-up = ' |
-
diff -ur mc-4.7.0.7.orig/misc/skins/featured.ini mc-4.7.0.7/misc/skins/featured.ini
old
|
new
|
|
26 | 26 | gauge=white;black |
27 | 27 | input=black;cyan |
28 | 28 | reverse=black;lightgray |
| 29 | header=yellow;blue |
| 30 | inputhistory= |
| 31 | commandhistory= |
29 | 32 | |
30 | 33 | [dialog] |
31 | 34 | _default_=black;lightgray |
32 | 35 | dfocus=black;cyan |
33 | 36 | dhotnormal=blue;lightgray |
34 | 37 | dhotfocus=blue;cyan |
| 38 | dtitle=blue;lightgray |
35 | 39 | |
36 | 40 | [error] |
37 | 41 | _default_=white;red |
| 42 | errdfocus=black;lightgray |
38 | 43 | errdhotnormal=yellow;red |
39 | 44 | errdhotfocus=yellow;lightgray |
| 45 | errdtitle=yellow;red |
40 | 46 | |
41 | 47 | |
42 | 48 | [filehighlight] |
… |
… |
|
72 | 78 | helpbold=blue;lightgray |
73 | 79 | helplink=black;cyan |
74 | 80 | helpslink=yellow;blue |
| 81 | helptitle=blue;lightgray |
75 | 82 | |
76 | 83 | [editor] |
77 | 84 | _default_=lightgray;blue |
… |
… |
|
83 | 90 | bookmarkfound=black;green |
84 | 91 | |
85 | 92 | [viewer] |
| 93 | viewbold=yellow;blue |
86 | 94 | viewunderline=brightred;blue |
| 95 | viewselected=yellow;cyan |
87 | 96 | |
88 | 97 | [widget-common] |
89 | 98 | sort-sign-up = ↓ |
-
diff -ur mc-4.7.0.7.orig/misc/skins/gotar.ini mc-4.7.0.7/misc/skins/gotar.ini
old
|
new
|
|
24 | 24 | gauge=;yellow |
25 | 25 | input=brightgreen; |
26 | 26 | reverse=brightgreen;blue |
| 27 | header=brightred; |
| 28 | inputhistory= |
| 29 | commandhistory= |
27 | 30 | |
28 | 31 | [dialog] |
29 | 32 | _default_=brightcyan;blue |
30 | 33 | dfocus=brightred;black |
31 | 34 | dhotnormal=brightred; |
32 | 35 | dhotfocus=yellow;black |
| 36 | dtitle=brightred; |
33 | 37 | |
34 | 38 | [error] |
35 | 39 | _default_=white;red |
| 40 | errdfocus=brightgreen;blue |
36 | 41 | errdhotnormal=yellow; |
37 | 42 | errdhotfocus=yellow;blue |
| 43 | errdtitle=yellow; |
38 | 44 | |
39 | 45 | [filehighlight] |
40 | 46 | directory=brightcyan; |
… |
… |
|
65 | 71 | helpbold=brightgreen; |
66 | 72 | helplink=white; |
67 | 73 | helpslink=yellow;blue |
| 74 | helptitle=brightgreen; |
68 | 75 | |
69 | 76 | [editor] |
70 | 77 | _default_=lightgray;black |
… |
… |
|
76 | 83 | bookmarkfound=black;green |
77 | 84 | |
78 | 85 | [viewer] |
| 86 | viewbold=brightred;black |
79 | 87 | viewunderline=brightgreen;black |
| 88 | viewselected=yellow;black |
80 | 89 | |
81 | 90 | [buttonbar] |
82 | 91 | hotkey=lightgray;black |
-
diff -ur mc-4.7.0.7.orig/misc/skins/sand256.ini mc-4.7.0.7/misc/skins/sand256.ini
old
|
new
|
|
72 | 72 | [core] |
73 | 73 | _default_=black;rgb554 |
74 | 74 | selected=;rgb452 |
75 | | marked=rgb400 |
76 | | markselect=rgb400;rgb452 |
| 75 | marked=rgb400;;bold |
| 76 | markselect=rgb400;rgb452;bold |
77 | 77 | gauge=;rgb452 |
78 | 78 | input=;rgb452 |
79 | 79 | reverse=;rgb452 |
| 80 | header=red |
| 81 | inputhistory=;rgb452 |
| 82 | commandhistory=default;default |
80 | 83 | |
81 | 84 | [dialog] |
82 | 85 | _default_=black;rgb553 |
83 | 86 | dfocus=;rgb452 |
84 | 87 | dhotnormal=;;underline |
85 | 88 | dhotfocus=;rgb452;underline |
| 89 | dtitle=red |
86 | 90 | |
87 | 91 | [error] |
88 | 92 | _default_=rgb554;rgb320;bold |
| 93 | errdfocus=black;rgb452;bold |
89 | 94 | errdhotnormal=;;bold+underline |
90 | | errdhotfocus=black;rgb452;underline |
| 95 | errdhotfocus=black;rgb452;bold+underline |
| 96 | errdtitle= |
91 | 97 | |
92 | 98 | [filehighlight] |
93 | 99 | directory= |
… |
… |
|
123 | 129 | helpbold=red |
124 | 130 | helplink=blue;;underline |
125 | 131 | helpslink=blue;;reverse |
| 132 | helptitle=red |
126 | 133 | |
127 | 134 | [editor] |
128 | 135 | _default_=black;rgb554 |
… |
… |
|
134 | 141 | bookmarkfound=;rgb530 |
135 | 142 | |
136 | 143 | [viewer] |
| 144 | viewbold=red |
137 | 145 | viewunderline=;;underline |
| 146 | viewselected=;rgb452 |
138 | 147 | |
139 | 148 | [widget-common] |
140 | 149 | sort-sign-up = ↓ |
-
diff -ur mc-4.7.0.7.orig/src/boxes.c mc-4.7.0.7/src/boxes.c
old
|
new
|
|
201 | 201 | add_widget (dd, cancel_button); |
202 | 202 | add_widget (dd, ok_button); |
203 | 203 | |
204 | | display_mini_status = input_new (10, 8, INPUT_COLOR, dlg_width - 12, _status[radio_sel], |
| 204 | display_mini_status = input_new (10, 8, INPUT_COLOR, INPUT_HISTORY_COLOR, dlg_width - 12, _status[radio_sel], |
205 | 205 | "mini-input", INPUT_COMPLETE_DEFAULT); |
206 | 206 | add_widget (dd, display_mini_status); |
207 | 207 | input_set_point (display_mini_status, 0); |
… |
… |
|
209 | 209 | display_check_status = check_new (9, 4, _check_status, user_mini_status); |
210 | 210 | add_widget (dd, display_check_status); |
211 | 211 | |
212 | | display_user_format = input_new (7, 8, INPUT_COLOR, dlg_width - 12, init_text, |
| 212 | display_user_format = input_new (7, 8, INPUT_COLOR, INPUT_HISTORY_COLOR, dlg_width - 12, init_text, |
213 | 213 | "user-fmt-input", INPUT_COMPLETE_DEFAULT); |
214 | 214 | add_widget (dd, display_user_format); |
215 | 215 | input_set_point (display_user_format, 0); |
… |
… |
|
1055 | 1055 | |
1056 | 1056 | g_free (title); |
1057 | 1057 | |
1058 | | in_user = input_new (5, istart, INPUT_COLOR, ilen, user, "auth_name", INPUT_COMPLETE_DEFAULT); |
| 1058 | in_user = input_new (5, istart, INPUT_COLOR, INPUT_HISTORY_COLOR, ilen, user, "auth_name", INPUT_COMPLETE_DEFAULT); |
1059 | 1059 | add_widget (auth_dlg, in_user); |
1060 | 1060 | |
1061 | 1061 | in_domain = |
1062 | | input_new (3, istart, INPUT_COLOR, ilen, domain, "auth_domain", INPUT_COMPLETE_DEFAULT); |
| 1062 | input_new (3, istart, INPUT_COLOR, INPUT_HISTORY_COLOR, ilen, domain, "auth_domain", INPUT_COMPLETE_DEFAULT); |
1063 | 1063 | add_widget (auth_dlg, in_domain); |
1064 | 1064 | add_widget (auth_dlg, button_new (9, b2, B_CANCEL, NORMAL_BUTTON, buts[1], 0)); |
1065 | 1065 | add_widget (auth_dlg, button_new (9, b0, B_ENTER, DEFPUSH_BUTTON, buts[0], 0)); |
1066 | 1066 | |
1067 | 1067 | in_password = |
1068 | | input_new (7, istart, INPUT_COLOR, ilen, "", "auth_password", INPUT_COMPLETE_DEFAULT); |
| 1068 | input_new (7, istart, INPUT_COLOR, INPUT_HISTORY_COLOR, ilen, "", "auth_password", INPUT_COMPLETE_DEFAULT); |
1069 | 1069 | in_password->completion_flags = 0; |
1070 | 1070 | in_password->is_password = 1; |
1071 | 1071 | add_widget (auth_dlg, in_password); |
-
diff -ur mc-4.7.0.7.orig/src/chmod.c mc-4.7.0.7/src/chmod.c
old
|
new
|
|
152 | 152 | dlg_move (h, TY + 3, TX); |
153 | 153 | tty_print_string (_("and T or INS to mark")); |
154 | 154 | |
155 | | tty_setcolor (COLOR_HOT_NORMAL); |
| 155 | tty_setcolor (COLOR_TITLE); |
156 | 156 | |
157 | 157 | dlg_move (h, PY, PX + 1); |
158 | 158 | tty_print_string (_(" Permission ")); |
-
diff -ur mc-4.7.0.7.orig/src/chown.c mc-4.7.0.7/src/chown.c
old
|
new
|
|
128 | 128 | dlg_move (h, TY + 9, TX + 1); |
129 | 129 | tty_print_string (_(" Permission ")); |
130 | 130 | |
131 | | tty_setcolor (COLOR_HOT_NORMAL); |
| 131 | tty_setcolor (COLOR_TITLE); |
132 | 132 | dlg_move (h, UY, UX + 1); |
133 | 133 | tty_print_string (_(" User name ")); |
134 | 134 | dlg_move (h, GY, GX + 1); |
-
diff -ur mc-4.7.0.7.orig/src/command.c mc-4.7.0.7/src/command.c
old
|
new
|
|
306 | 306 | { |
307 | 307 | WInput *cmd; |
308 | 308 | |
309 | | cmd = input_new (y, x, DEFAULT_COLOR, cols, "", "cmdline", |
| 309 | cmd = input_new (y, x, DEFAULT_COLOR, COMMAND_HISTORY_COLOR, cols, "", "cmdline", |
310 | 310 | INPUT_COMPLETE_DEFAULT | INPUT_COMPLETE_CD | INPUT_COMPLETE_COMMANDS | INPUT_COMPLETE_SHELL_ESC); |
311 | 311 | |
312 | 312 | /* Add our hooks */ |
-
diff -ur mc-4.7.0.7.orig/src/dialog.c mc-4.7.0.7/src/dialog.c
old
|
new
|
|
45 | 45 | #include "setup.h" /* mouse_close_dialog */ |
46 | 46 | |
47 | 47 | /* Color styles for normal and error dialogs */ |
48 | | int dialog_colors [4]; |
49 | | int alarm_colors [4]; |
| 48 | int dialog_colors [DLG_COLOR_NUM]; |
| 49 | int alarm_colors [DLG_COLOR_NUM]; |
50 | 50 | |
51 | 51 | /* Primitive way to check if the the current dialog is our dialog */ |
52 | 52 | /* This is needed by async routines like load_prompt */ |
… |
… |
|
110 | 110 | draw_box (h, space, space, h->lines - 2 * space, h->cols - 2 * space); |
111 | 111 | |
112 | 112 | if (h->title) { |
113 | | tty_setcolor (DLG_HOT_NORMALC (h)); |
| 113 | tty_setcolor (DLG_TITLEC (h)); |
114 | 114 | dlg_move (h, space, (h->cols - str_term_width1 (h->title)) / 2); |
115 | 115 | tty_print_string (h->title); |
116 | 116 | } |
… |
… |
|
281 | 281 | dialog_colors [1] = COLOR_FOCUS; |
282 | 282 | dialog_colors [2] = COLOR_HOT_NORMAL; |
283 | 283 | dialog_colors [3] = COLOR_HOT_FOCUS; |
| 284 | dialog_colors [4] = COLOR_TITLE; |
284 | 285 | |
285 | 286 | alarm_colors [0] = ERROR_COLOR; |
286 | | alarm_colors [1] = REVERSE_COLOR; |
| 287 | alarm_colors [1] = ERROR_FOCUS; |
287 | 288 | alarm_colors [2] = ERROR_HOT_NORMAL; |
288 | 289 | alarm_colors [3] = ERROR_HOT_FOCUS; |
| 290 | alarm_colors [4] = ERROR_TITLE; |
289 | 291 | } |
290 | 292 | |
291 | 293 | void |
-
diff -ur mc-4.7.0.7.orig/src/dialog.h mc-4.7.0.7/src/dialog.h
old
|
new
|
|
91 | 91 | typedef char * (*dlg_shortcut_str) (unsigned long command); |
92 | 92 | |
93 | 93 | /* Dialog color constants */ |
94 | | #define DLG_COLOR_NUM 4 |
| 94 | #define DLG_COLOR_NUM 5 |
95 | 95 | #define DLG_NORMALC(h) ((h)->color[0]) |
96 | 96 | #define DLG_FOCUSC(h) ((h)->color[1]) |
97 | 97 | #define DLG_HOT_NORMALC(h) ((h)->color[2]) |
98 | 98 | #define DLG_HOT_FOCUSC(h) ((h)->color[3]) |
| 99 | #define DLG_TITLEC(h) ((h)->color[4]) |
99 | 100 | |
100 | 101 | struct Dlg_head { |
101 | 102 | /* Set by the user */ |
… |
… |
|
126 | 127 | }; |
127 | 128 | |
128 | 129 | /* Color styles for normal and error dialogs */ |
129 | | extern int dialog_colors[4]; |
130 | | extern int alarm_colors[4]; |
| 130 | extern int dialog_colors[DLG_COLOR_NUM]; |
| 131 | extern int alarm_colors[DLG_COLOR_NUM]; |
131 | 132 | |
132 | 133 | |
133 | 134 | /* Widget callback */ |
-
diff -ur mc-4.7.0.7.orig/src/editor/editcmd_dialogs.c mc-4.7.0.7/src/editor/editcmd_dialogs.c
old
|
new
|
|
316 | 316 | create_dlg (0, 0, 7, w, dialog_colors, editcmd_dialog_raw_key_query_cb, |
317 | 317 | NULL, heading, DLG_CENTER | DLG_TRYUP | DLG_WANT_TAB); |
318 | 318 | add_widget (raw_dlg, |
319 | | input_new (3 - cancel, w - 5, INPUT_COLOR, 2, "", 0, INPUT_COMPLETE_DEFAULT)); |
| 319 | input_new (3 - cancel, w - 5, INPUT_COLOR, INPUT_HISTORY_COLOR, 2, "", 0, INPUT_COMPLETE_DEFAULT)); |
320 | 320 | add_widget (raw_dlg, label_new (3 - cancel, 2, query)); |
321 | 321 | if (cancel) |
322 | 322 | add_widget (raw_dlg, button_new (4, w / 2 - 5, B_CANCEL, NORMAL_BUTTON, _("Cancel"), 0)); |
-
diff -ur mc-4.7.0.7.orig/src/find.c mc-4.7.0.7/src/find.c
old
|
new
|
|
444 | 444 | file_case_sens_cbox = check_new (7, 3, options.file_case_sens, file_case_label); |
445 | 445 | add_widget (find_dlg, file_case_sens_cbox); |
446 | 446 | |
447 | | in_with = input_new (6, FIND_X / 2 + 1, INPUT_COLOR, FIND_X / 2 - 4, INPUT_LAST_TEXT, |
| 447 | in_with = input_new (6, FIND_X / 2 + 1, INPUT_COLOR, INPUT_HISTORY_COLOR, FIND_X / 2 - 4, INPUT_LAST_TEXT, |
448 | 448 | MC_HISTORY_SHARED_SEARCH, INPUT_COMPLETE_DEFAULT); |
449 | 449 | add_widget (find_dlg, in_with); |
450 | 450 | add_widget (find_dlg, label_new (5, FIND_X / 2 + 1, _("Content:"))); |
451 | 451 | |
452 | | in_name = input_new (6, 3, INPUT_COLOR, FIND_X / 2 - 4, INPUT_LAST_TEXT, "name", |
| 452 | in_name = input_new (6, 3, INPUT_COLOR, INPUT_HISTORY_COLOR, FIND_X / 2 - 4, INPUT_LAST_TEXT, "name", |
453 | 453 | INPUT_COMPLETE_DEFAULT); |
454 | 454 | add_widget (find_dlg, in_name); |
455 | 455 | add_widget (find_dlg, label_new (5, 3, _("File name:"))); |
… |
… |
|
457 | 457 | add_widget (find_dlg, |
458 | 458 | button_new (3, FIND_X - b2 - 2, B_TREE, NORMAL_BUTTON, buts[2], 0)); |
459 | 459 | |
460 | | in_start = input_new (3, 3, INPUT_COLOR, FIND_X - b2 - 6, in_start_dir, "start", |
| 460 | in_start = input_new (3, 3, INPUT_COLOR, INPUT_HISTORY_COLOR, FIND_X - b2 - 6, in_start_dir, "start", |
461 | 461 | INPUT_COMPLETE_DEFAULT); |
462 | 462 | add_widget (find_dlg, in_start); |
463 | 463 | add_widget (find_dlg, label_new (2, 3, _("Start at:"))); |
-
Only in mc-4.7.0.7/src: find.c.orig
diff -ur mc-4.7.0.7.orig/src/help.c mc-4.7.0.7/src/help.c
old
|
new
|
|
978 | 978 | const int help_colors[DLG_COLOR_NUM] = { |
979 | 979 | HELP_NORMAL_COLOR, /* common text color */ |
980 | 980 | 0, /* unused in help */ |
981 | | HELP_BOLD_COLOR, /* title color */ |
982 | | 0 /* unused in help */ |
| 981 | HELP_BOLD_COLOR, /* bold text color */ |
| 982 | 0, /* unused in help */ |
| 983 | HELP_TITLE_COLOR, /* title color */ |
983 | 984 | }; |
984 | 985 | |
985 | 986 | WButtonBar *help_bar; |
-
diff -ur mc-4.7.0.7.orig/src/layout.c mc-4.7.0.7/src/layout.c
old
|
new
|
|
300 | 300 | old_horizontal_split = -1; |
301 | 301 | old_output_lines = -1; |
302 | 302 | |
303 | | tty_setcolor (COLOR_HOT_NORMAL); |
304 | 303 | update_split (); |
| 304 | tty_setcolor (COLOR_NORMAL); |
305 | 305 | dlg_move (h, 6, 13); |
306 | 306 | tty_print_char ('='); |
307 | 307 | if (console_flag){ |
-
diff -ur mc-4.7.0.7.orig/src/main.c mc-4.7.0.7/src/main.c
old
|
new
|
|
1829 | 1829 | midnight_colors[1] = mc_skin_color_get("dialog", "focus"); |
1830 | 1830 | midnight_colors[2] = mc_skin_color_get("dialog", "hotnormal"); |
1831 | 1831 | midnight_colors[3] = mc_skin_color_get("dialog", "hotfocus"); |
| 1832 | midnight_colors[4] = 0; /* unused on the main screen */ |
1832 | 1833 | |
1833 | 1834 | panel_init (); |
1834 | 1835 | |
-
Only in mc-4.7.0.7/src: main.c.orig
diff -ur mc-4.7.0.7.orig/src/panelize.c mc-4.7.0.7/src/panelize.c
old
|
new
|
|
170 | 170 | panelize_but[i].text, 0)); |
171 | 171 | |
172 | 172 | pname = |
173 | | input_new (UY + 14, UX, INPUT_COLOR, panelize_dlg->cols - 10, "", |
| 173 | input_new (UY + 14, UX, INPUT_COLOR, INPUT_HISTORY_COLOR, panelize_dlg->cols - 10, "", |
174 | 174 | "in", INPUT_COMPLETE_DEFAULT); |
175 | 175 | add_widget (panelize_dlg, pname); |
176 | 176 | |
-
diff -ur mc-4.7.0.7.orig/src/screen.c mc-4.7.0.7/src/screen.c
old
|
new
|
|
1524 | 1524 | g_string_append (format_txt, "]"); |
1525 | 1525 | } |
1526 | 1526 | |
1527 | | tty_setcolor (MARKED_COLOR); |
| 1527 | tty_setcolor (HEADER_COLOR); |
1528 | 1528 | tty_print_string (str_fit_to_term (format_txt->str, format->field_len, |
1529 | 1529 | J_CENTER_LEFT)); |
1530 | 1530 | width -= format->field_len; |
-
diff -ur mc-4.7.0.7.orig/src/viewer/display.c mc-4.7.0.7/src/viewer/display.c
old
|
new
|
|
389 | 389 | if (ruler == RULER_NONE || height < 1) |
390 | 390 | return; |
391 | 391 | |
392 | | tty_setcolor (MARKED_COLOR); |
| 392 | tty_setcolor (VIEW_BOLD_COLOR); |
393 | 393 | for (c = 0; c < width; c++) |
394 | 394 | { |
395 | 395 | cl = view->dpy_text_column + c; |
-
diff -ur mc-4.7.0.7.orig/src/viewer/hex.c mc-4.7.0.7/src/viewer/hex.c
old
|
new
|
|
118 | 118 | g_snprintf (hex_buff, sizeof (hex_buff), "%08" OFFSETTYPE_PRIX " ", |
119 | 119 | (long unsigned int) from); |
120 | 120 | widget_move (view, top + row, left); |
121 | | tty_setcolor (MARKED_COLOR); |
| 121 | tty_setcolor (VIEW_BOLD_COLOR); |
122 | 122 | for (i = 0; col < width && hex_buff[i] != '\0'; i++) |
123 | 123 | { |
124 | 124 | tty_print_char (hex_buff[i]); |
… |
… |
|
166 | 166 | |
167 | 167 | /* Select the color for the hex number */ |
168 | 168 | tty_setcolor (boldflag == MARK_NORMAL ? NORMAL_COLOR : |
169 | | boldflag == MARK_SELECTED ? MARKED_COLOR : |
| 169 | boldflag == MARK_SELECTED ? VIEW_BOLD_COLOR : |
170 | 170 | boldflag == MARK_CHANGED ? VIEW_UNDERLINED_COLOR : |
171 | 171 | /* boldflag == MARK_CURSOR */ |
172 | | view->hexview_in_text ? MARKED_SELECTED_COLOR : VIEW_UNDERLINED_COLOR); |
| 172 | view->hexview_in_text ? VIEW_SELECTED_COLOR : VIEW_UNDERLINED_COLOR); |
173 | 173 | |
174 | 174 | /* Print the hex number */ |
175 | 175 | widget_move (view, top + row, left + col); |
… |
… |
|
213 | 213 | /* Select the color for the character; this differs from the |
214 | 214 | * hex color when boldflag == MARK_CURSOR */ |
215 | 215 | tty_setcolor (boldflag == MARK_NORMAL ? NORMAL_COLOR : |
216 | | boldflag == MARK_SELECTED ? MARKED_COLOR : |
| 216 | boldflag == MARK_SELECTED ? VIEW_BOLD_COLOR : |
217 | 217 | boldflag == MARK_CHANGED ? VIEW_UNDERLINED_COLOR : |
218 | 218 | /* boldflag == MARK_CURSOR */ |
219 | | view->hexview_in_text ? VIEW_UNDERLINED_COLOR : MARKED_SELECTED_COLOR); |
| 219 | view->hexview_in_text ? VIEW_UNDERLINED_COLOR : VIEW_SELECTED_COLOR); |
220 | 220 | |
221 | 221 | #ifdef HAVE_CHARSET |
222 | 222 | if (utf8_display) |
-
diff -ur mc-4.7.0.7.orig/src/viewer/nroff.c mc-4.7.0.7/src/viewer/nroff.c
old
|
new
|
|
134 | 134 | && (c_next != '_' || mcview_count_backspaces (view, from + 1) == 1)) |
135 | 135 | tty_setcolor (VIEW_UNDERLINED_COLOR); |
136 | 136 | else |
137 | | tty_setcolor (MARKED_COLOR); |
| 137 | tty_setcolor (VIEW_BOLD_COLOR); |
138 | 138 | continue; |
139 | 139 | } |
140 | 140 | } |
-
Only in mc-4.7.0.7/src/viewer: nroff.c.orig
diff -ur mc-4.7.0.7.orig/src/widget.c mc-4.7.0.7/src/widget.c
old
|
new
|
|
893 | 893 | char c; |
894 | 894 | c = in->history->next ? (in->history->prev ? '|' : 'v') : '^'; |
895 | 895 | widget_move (&in->widget, 0, in->field_width - HISTORY_BUTTON_WIDTH); |
| 896 | tty_setcolor (in->history_color); |
896 | 897 | #ifdef LARGE_HISTORY_BUTTON |
897 | 898 | { |
898 | 899 | Dlg_head *h; |
899 | 900 | h = in->widget.parent; |
900 | | tty_setcolor (NORMAL_COLOR); |
901 | 901 | tty_print_string ("[ ]"); |
902 | | /* Too distracting: tty_setcolor (MARKED_COLOR); */ |
903 | 902 | widget_move (&in->widget, 0, in->field_width - HISTORY_BUTTON_WIDTH + 1); |
904 | | tty_print_char (c); |
905 | 903 | } |
906 | | #else |
907 | | tty_setcolor (MARKED_COLOR); |
908 | | tty_print_char (c); |
909 | 904 | #endif |
| 905 | tty_print_char (c); |
910 | 906 | } |
911 | 907 | |
912 | 908 | /* }}} history button */ |
… |
… |
|
1997 | 1993 | } |
1998 | 1994 | |
1999 | 1995 | WInput * |
2000 | | input_new (int y, int x, int color, int width, const char *def_text, |
| 1996 | input_new (int y, int x, int color, int history_color, int width, const char *def_text, |
2001 | 1997 | const char *histname, INPUT_COMPLETE_FLAGS completion_flags) |
2002 | 1998 | { |
2003 | 1999 | WInput *in = g_new (WInput, 1); |
… |
… |
|
2031 | 2027 | in->current_max_size = initial_buffer_len; |
2032 | 2028 | in->buffer = g_new (char, initial_buffer_len); |
2033 | 2029 | in->color = color; |
| 2030 | in->history_color = history_color; |
2034 | 2031 | in->field_width = width; |
2035 | 2032 | in->first = 1; |
2036 | 2033 | in->term_first_shown = 0; |
… |
… |
|
2882 | 2879 | g->widget.x - g->widget.parent->x, g->widget.lines, |
2883 | 2880 | g->widget.cols); |
2884 | 2881 | |
2885 | | tty_setcolor (COLOR_HOT_NORMAL); |
| 2882 | tty_setcolor (COLOR_TITLE); |
2886 | 2883 | dlg_move (g->widget.parent, g->widget.y - g->widget.parent->y, |
2887 | 2884 | g->widget.x - g->widget.parent->x + 1); |
2888 | 2885 | tty_print_string (g->title); |
-
Only in mc-4.7.0.7/src: widget.c.orig
diff -ur mc-4.7.0.7.orig/src/widget.h mc-4.7.0.7/src/widget.h
old
|
new
|
|
105 | 105 | size_t current_max_size; /* Maximum length of input line (bytes) */ |
106 | 106 | int field_width; /* width of the editing field */ |
107 | 107 | int color; /* color used */ |
| 108 | int history_color; /* color of the history button */ |
108 | 109 | int first; /* Is first keystroke? */ |
109 | 110 | int disable_update; /* Do we want to skip updates? */ |
110 | 111 | int is_password; /* Is this a password input line? */ |
… |
… |
|
187 | 188 | bcback callback); |
188 | 189 | WRadio *radio_new (int y, int x, int count, const char **text); |
189 | 190 | WCheck *check_new (int y, int x, int state, const char *text); |
190 | | WInput *input_new (int y, int x, int color, int len, const char *text, const char *histname, INPUT_COMPLETE_FLAGS completion_flags); |
| 191 | WInput *input_new (int y, int x, int color, int history_color, int len, const char *text, const char *histname, INPUT_COMPLETE_FLAGS completion_flags); |
191 | 192 | WLabel *label_new (int y, int x, const char *text); |
192 | 193 | WGauge *gauge_new (int y, int x, int shown, int max, int current); |
193 | 194 | WListbox *listbox_new (int y, int x, int height, int width, lcback callback); |
-
diff -ur mc-4.7.0.7.orig/src/wtools.c mc-4.7.0.7/src/wtools.c
old
|
new
|
|
54 | 54 | COLOR_FOCUS, |
55 | 55 | COLOR_HOT_NORMAL, |
56 | 56 | COLOR_HOT_FOCUS, |
| 57 | COLOR_TITLE, |
57 | 58 | }; |
58 | 59 | |
59 | 60 | const int space = 4; |
… |
… |
|
409 | 410 | break; |
410 | 411 | |
411 | 412 | case quick_input: |
412 | | in = input_new (ypos, xpos, INPUT_COLOR, qw->u.input.len, |
| 413 | in = input_new (ypos, xpos, INPUT_COLOR, INPUT_HISTORY_COLOR, qw->u.input.len, |
413 | 414 | qw->u.input.text, qw->u.input.histname, INPUT_COMPLETE_DEFAULT); |
414 | 415 | in->is_password = (qw->u.input.flags == 1); |
415 | 416 | in->point = 0; |