From 4d0c095947ed30d4f32e6db27eddbc4719fbcf9b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 25 Nov 2012 10:47:47 +0100 Subject: Add compact panels support Add a configuration option that allows for switching to compact panel mode. In this mode, all window labels are hidden, so that there's more space for actual information. This patch doesn't add a configuration menu entry and doesn't add any documentation. Implements FR#7. Signed-off-by: Lukas Fleischer --- src/todo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/todo.c') diff --git a/src/todo.c b/src/todo.c index e918905..2a207e2 100644 --- a/src/todo.c +++ b/src/todo.c @@ -275,9 +275,9 @@ void todo_update_panel(int which_pan) llist_item_t *i; int len = win[TOD].w - 8; int num_todo = 0; - int y_offset = 3, x_offset = 1; + int title_lines = conf.compact_panels ? 1 : 3; + int y_offset = title_lines, x_offset = 1; int t_realpos = -1; - int title_lines = 3; int todo_lines = 1; int max_items = win[TOD].h - 4; int incolor = -1; -- cgit v1.2.3-54-g00ecf