aboutsummaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-25 10:47:47 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-25 18:33:29 +0100
commit4d0c095947ed30d4f32e6db27eddbc4719fbcf9b (patch)
tree1f8d4a305fc0e80ee0801a2b8fa8f65699a868d6 /src/todo.c
parentedf3903ac840b1889b9bdd687965453a7e26b7ee (diff)
downloadcalcurse-4d0c095947ed30d4f32e6db27eddbc4719fbcf9b.tar.gz
calcurse-4d0c095947ed30d4f32e6db27eddbc4719fbcf9b.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/todo.c')
-rw-r--r--src/todo.c4
1 files changed, 2 insertions, 2 deletions
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;