Commit Graph
8 Commits
Author SHA1 Message Date
Matteo Kloiber f99b800720 Fixed a bug which would render the background color of the label in the gauge widget incorrectly.
This bug was introduced in changeset 137d2a7.
2015-04-23 12:19:21 +02:00
Matteo Kloiber c8d326317b Added custom text color for gauge when the text is highlighted (i.e. the
gauge bar is over the text).
2015-04-22 22:13:44 +02:00
Matteo Kloiber 83a3a236f4 Renamed Gauge.Align to Gauge.LabelAlign. 2015-04-21 18:07:48 +02:00
Matteo Kloiber 137d2a7eb2 Added support for label align in gauges. 2015-04-21 17:41:52 +02:00
Matteo Kloiber 3968b02432 Added support for gauges with custom labels. 2015-04-21 17:33:32 +02:00
Matteo Kloiber 821f8bfd95 Fixes unsafe pointer madness.
`func uiEvt(e termbox.Event) Event` used to change the type of termbox.Event to Event by
using some pointer-cast magic[1], which could cause an overflow if `termbox.Event` changes
its structure.
I'd rather just have `type Event termbox.Event` but that would break backwards compatibility.

Warning: A buffer overflow could cause a serious security issue but it is very unlikely that
anyone could exploit that (though not impossbible). You'd need to push a upstream update to
termbox, which would tweak termbox.Event's structure. Still, this issue should be fixed and
unsafe should never be used.

[1] it used to get the address of termbox.Event and just cast a Event pointer
2015-04-15 13:49:31 +02:00
Matteo Kloiber 07b4361cd4 Fixed link to the travis page for the travis badge & added doc reference badge. 2015-03-21 02:11:58 +01:00
Matteo Kloiber 080cb3c6f0 Added new public (exported) getter for Theme. Fixes #6
Added new public setter for Theme (which uses a bare theme).
Made ColorScheme public.
2015-03-20 10:35:09 +01:00