Minor changes of tree panel look'n'feel.

Added title.
Added LTEE and RTEE symbols to the mini-info separator.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-05-25 11:23:20 +04:00
parent 2f224cd85f
commit 196b44ead0

View File

@ -1037,9 +1037,19 @@ tree_frame (Dlg_head * h, WTree * tree)
widget_erase ((Widget *) tree);
if (tree->is_panel)
{
const char *title = _("Directory tree");
const int len = str_term_width1 (title);
draw_box (h, tree->widget.y, tree->widget.x, tree->widget.lines, tree->widget.cols, FALSE);
widget_move (&tree->widget, 0, (tree->widget.cols - len - 2)/2);
tty_printf (" %s ", title);
if (show_mini_info)
widget_move (&tree->widget, tlines (tree) + 1, 0);
tty_print_alt_char (ACS_LTEE, FALSE);
widget_move (&tree->widget, tlines (tree) + 1, tree->widget.cols - 1);
tty_print_alt_char (ACS_RTEE, FALSE);
tty_draw_hline (tree->widget.y + tlines (tree) + 1,
tree->widget.x + 1, ACS_HLINE, tree->widget.cols - 2);
}