From f3187917fbf98ad3f796985175e0d52898eb8e3a Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 10 Sep 2014 00:32:40 +0100 Subject: [PATCH] Coloured room config form var tags --- src/ui/core.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/core.c b/src/ui/core.c index 1c19e4f7..4ae62eb1 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1900,9 +1900,13 @@ _ui_handle_room_configuration(const char * const room, DataForm *form) if (g_strcmp0(field->type, "hidden") != 0) { if (field->required) { - win_save_vprint(window, '-', NULL, NO_EOL, 0, "", "%s (%s) Required: ", field->label, field->var); + win_save_vprint(window, '-', NULL, NO_EOL, 0, "", "%s (", field->label); + win_save_print(window, '-', NULL, NO_DATE | NO_EOL, COLOUR_AWAY, "", field->var); + win_save_print(window, '-', NULL, NO_DATE | NO_EOL, 0, "", ") Required: "); } else { - win_save_vprint(window, '-', NULL, NO_EOL, 0, "", "%s (%s): ", field->label, field->var); + win_save_vprint(window, '-', NULL, NO_EOL, 0, "", "%s (", field->label); + win_save_print(window, '-', NULL, NO_DATE | NO_EOL, COLOUR_AWAY, "", field->var); + win_save_print(window, '-', NULL, NO_DATE | NO_EOL, 0, "", "): "); } /* TODO add command to get help for a field