From: Michael R. <re...@eu...> - 2006-08-13 11:52:25
|
Hi Till, list, > i have changed the generic widget extra color into a bar specfic barcolor0 und > barcolor1 which can be used to set the colors of the both bars seperately (see > the screenshot at http://ssl.bulix.org/projects/lcd4linux/wiki/LEDMatrix). Great Idea! A further improvement comes to my mind: give different areas of the bar different colors? (say: 0-50% green, 51-80% yellow, 81-100% red) I have no idea how to implement this in a clean (and understandable :-) way... maybe a bar could have a 'background image', and the bar drawing function just does alpha blending? > I have additionally added support for a bold 6x8 font'which you can see in > that screenshot as well. I just love to have more LEDs being switched on ... Another great idea, which I already improved: I removed all the BOLD stuff (sorry, Till :-) an re-added this as a text-widget specific attribute. So you can add a "style 'bold'" attribute to every text widget. This attribute is dynamically evaluated, so you can even change between bold and normal font during operation (there's an example in the lcd4linux.conf.sample from current CVS, using the test::onoff() plugin. Have a look at the CPU widget) While implementing this, I found the current widget attribute handling to be quite complex. So I tried to hide some of the complexity a bit in the new 'dynamic property' functions. Some properties of the text widget (namely prefix postfix and style) use this new stuff. Looks much cleaner to me.... btw, there's a 'truetype' widget for graphic displays on my wishlist.... bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |