mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Coloured room config form var tags
This commit is contained in:
parent
f49a6a65d9
commit
f3187917fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user