summaryrefslogtreecommitdiff
path: root/vchat-ui.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-21 13:42:44 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-21 13:42:44 +0200
commitdc6e13b39ba2190d7f11378be48f8ccfe10d47f6 (patch)
treed8dc929193be64f4513df17c832f4f371ac01956 /vchat-ui.c
parent40e8d51a27f85dc7cac8c685add574d48a997180 (diff)
Add an option to invert the window bars instead of coloring them
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-xvchat-ui.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/vchat-ui.c b/vchat-ui.c
index a55f7f8..62ef372 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -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);