From 45a26b111f8bdfe9fb534368eb29bb8963353d8a Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 22 Nov 2012 02:34:49 +0000 Subject: Added time to themes, and some example themes --- src/theme.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/theme.c') diff --git a/src/theme.c b/src/theme.c index b6e18afa..aafbd859 100644 --- a/src/theme.c +++ b/src/theme.c @@ -70,6 +70,7 @@ static struct colours_t { NCURSES_COLOR_T statusbarnew; NCURSES_COLOR_T maintext; NCURSES_COLOR_T inputtext; + NCURSES_COLOR_T timetext; NCURSES_COLOR_T splashtext; NCURSES_COLOR_T online; NCURSES_COLOR_T away; @@ -158,6 +159,7 @@ theme_init_colours(void) init_pair(3, colour_prefs.error, colour_prefs.bkgnd); init_pair(4, colour_prefs.incoming, colour_prefs.bkgnd); init_pair(5, colour_prefs.inputtext, colour_prefs.bkgnd); + init_pair(6, colour_prefs.timetext, colour_prefs.bkgnd); // title bar init_pair(10, colour_prefs.titlebartext, colour_prefs.titlebar); @@ -257,6 +259,9 @@ _load_colours(void) gchar *inputtext_val = g_key_file_get_string(theme, "colours", "inputtext", NULL); _set_colour(inputtext_val, &colour_prefs.inputtext, COLOR_WHITE); + gchar *timetext_val = g_key_file_get_string(theme, "colours", "timetext", NULL); + _set_colour(timetext_val, &colour_prefs.timetext, COLOR_WHITE); + gchar *online_val = g_key_file_get_string(theme, "colours", "online", NULL); _set_colour(online_val, &colour_prefs.online, COLOR_GREEN); -- cgit 1.4.1-2-gfad0