From ccf39796a1c59b0dec4b030a5791b71246e77e64 Mon Sep 17 00:00:00 2001 From: harbaum Date: Wed, 9 Aug 2006 17:25:34 +0000 Subject: [lcd4linux @ 2006-08-09 17:25:34 by harbaum] Better bar color support and new bold font git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@685 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- widget_bar.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'widget_bar.c') diff --git a/widget_bar.c b/widget_bar.c index 079e327..a03f74d 100644 --- a/widget_bar.c +++ b/widget_bar.c @@ -1,4 +1,4 @@ -/* $Id: widget_bar.c,v 1.18 2006/01/23 06:17:18 reinelt Exp $ +/* $Id: widget_bar.c,v 1.19 2006/08/09 17:25:34 harbaum Exp $ * * bar widget handling * @@ -21,6 +21,9 @@ * * * $Log: widget_bar.c,v $ + * Revision 1.19 2006/08/09 17:25:34 harbaum + * Better bar color support and new bold font + * * Revision 1.18 2006/01/23 06:17:18 reinelt * timer widget added * @@ -270,6 +273,10 @@ int widget_bar_init(WIDGET * Self) /* update interval (msec), default 1 sec */ cfg_number(section, "update", 1000, 10, -1, &(Bar->update)); + /* get widget special colors */ + Bar->color_valid[0] = widget_color(section, Self->name, "barcolor0", &Bar->color[0]); + Bar->color_valid[1] = widget_color(section, Self->name, "barcolor1", &Bar->color[1]); + free(section); Self->data = Bar; -- cgit v1.2.3