diff options
Diffstat (limited to 'vchat-ui.c')
| -rwxr-xr-x | vchat-ui.c | 20 |
1 files changed, 15 insertions, 5 deletions
| @@ -1150,17 +1150,27 @@ initui (void) | |||
| 1150 | 1150 | ||
| 1151 | /* set colors for windows */ | 1151 | /* set colors for windows */ |
| 1152 | if (has_colors()) { | 1152 | if (has_colors()) { |
| 1153 | wattrset (console, COLOR_PAIR (9)); | 1153 | if (getintoption(CF_INVWINBAR)) { |
| 1154 | wbkgd (console, COLOR_PAIR (0)); | ||
| 1155 | wattron (console, A_REVERSE); | ||
| 1156 | } else { | ||
| 1157 | wattrset (console, COLOR_PAIR (9)); | ||
| 1158 | wbkgd (console, COLOR_PAIR (9)); | ||
| 1159 | } | ||
| 1154 | wattrset (input, COLOR_PAIR (0)); | 1160 | wattrset (input, COLOR_PAIR (0)); |
| 1155 | wbkgd (output, COLOR_PAIR(8)); | 1161 | wbkgd (output, COLOR_PAIR(8)); |
| 1156 | wbkgd (console, COLOR_PAIR (9)); | ||
| 1157 | wbkgd (channel, COLOR_PAIR (0)); | 1162 | wbkgd (channel, COLOR_PAIR (0)); |
| 1158 | wbkgd (input, COLOR_PAIR (0)); | 1163 | wbkgd (input, COLOR_PAIR (0)); |
| 1159 | if (private) | 1164 | if (private) |
| 1160 | wbkgd (private, COLOR_PAIR (0)); | 1165 | wbkgd (private, COLOR_PAIR (0)); |
| 1161 | if( topic ) { | 1166 | if (topic) { |
| 1162 | wattrset (topic, COLOR_PAIR (9)); | 1167 | if (getintoption(CF_INVWINBAR)) { |
| 1163 | wbkgd (topic, COLOR_PAIR (9)); | 1168 | wbkgd (input, COLOR_PAIR (0)); |
| 1169 | wattron(topic, A_REVERSE); | ||
| 1170 | } else { | ||
| 1171 | wattrset (topic, COLOR_PAIR (9)); | ||
| 1172 | wbkgd (topic, COLOR_PAIR (9)); | ||
| 1173 | } | ||
| 1164 | } | 1174 | } |
| 1165 | } else { | 1175 | } else { |
| 1166 | wattron (console, A_REVERSE); | 1176 | wattron (console, A_REVERSE); |
