mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
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:
parent
2f224cd85f
commit
196b44ead0
10
src/tree.c
10
src/tree.c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user