From cee9e624b84bf76c7349b5160b4014709ccc6c4c Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Thu, 25 Sep 2014 15:17:03 -0400 Subject: [PATCH] more UI changes --- src/line_info.c | 8 ++++---- src/misc_tools.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/line_info.c b/src/line_info.c index f99cd13..9c942cf 100644 --- a/src/line_info.c +++ b/src/line_info.c @@ -156,12 +156,12 @@ void line_info_add(ToxWindow *self, char *timestr, char *name1, char *name2, uin switch (type) { case IN_ACTION: case OUT_ACTION: - len += 3; + len += 5; break; case IN_MSG: case OUT_MSG: - len += 2; + len += 6; break; case CONNECTION: @@ -309,7 +309,7 @@ void line_info_print(ToxWindow *self) nameclr = CYAN; wattron(win, COLOR_PAIR(nameclr)); - wprintw(win, "%s: ", line->name1); + wprintw(win, "--- %s: ", line->name1); wattroff(win, COLOR_PAIR(nameclr)); if (line->msg[0] == '>') @@ -342,7 +342,7 @@ void line_info_print(ToxWindow *self) wattroff(win, COLOR_PAIR(BLUE)); wattron(win, COLOR_PAIR(YELLOW)); - wprintw(win, "* %s %s", line->name1, line->msg); + wprintw(win, "-*- %s %s", line->name1, line->msg); wattroff(win, COLOR_PAIR(YELLOW)); if (type == OUT_ACTION && timed_out(line->timestamp, get_unix_time(), NOREAD_FLAG_TIMEOUT)) { diff --git a/src/misc_tools.c b/src/misc_tools.c index 9abf405..cc958b7 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -87,7 +87,7 @@ void get_time_str(char *buf, int bufsize) return; } - const char *t = user_settings->time == TIME_12 ? "%-I:%M:%S " : "%H:%M:%S "; + const char *t = user_settings->time == TIME_12 ? "%I:%M:%S " : "%H:%M:%S "; strftime(buf, bufsize, t, get_time()); }