1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

19 Commits

Author SHA1 Message Date
Sean Smith
e28bdac0ee Make default color sub. Also use default as defaults 2019-09-14 14:00:09 -04:00
Sean Smith
9fccd721e0 Expand and fix test
Add an extra color
Fix empty case. This shows up as white/whatever color the rest of the widget is like
2019-09-13 19:22:20 -04:00
Sean Smith
56975bc80a Improve bargraph view so bar colors are configurable
Inspired by #624
Update the view object so that widget developers can configure bar color
2019-09-12 20:01:08 -04:00
Sean Smith
26ca1618ab Fix config reload race
Race condition is around the usage of `enabled`
Wrap access in a mutex to eliminate race
Fixes #422
2019-09-10 21:49:40 -04:00
Chris Cummer
e059eeb625 Add the ability to display no title 2019-09-10 16:18:00 -07:00
Sean Smith
f2c10902b3 Fix delete/close of todoist
Currently, when deleting, we jump 2 positions, since we are calling next.
However, the next item becomes the current selected position, so handle better
Properly set selected in some edge cases where we may go from a list to 0
2019-08-31 19:02:56 -04:00
Sean Smith
14e7619075 Renormalize the redraw function
Have all instances take a function
Update the remaining modules to take this into account
Numerous smaller refactors to make some widgets work more or less the same
2019-08-27 21:51:37 -04:00
Sean Smith
264f49fd2c Fix race with HighlightableHelper
GetRect can lead to a race condition
Add a RenderFunc method so that we can call try to
wrap even more of our rendering in the thread safe
`QueueUpdateDraw` method
2019-08-24 22:15:35 -04:00
Chris Cummer
523a0bec2c Remove the need for every module to define a widget.Refresh keyboard control 2019-08-23 21:18:51 -07:00
Chris Cummer
5337656c58 Remove the need for every module to define a widget.ShowHelp keyboard control
This common functionality is moved up to KeyboardWidget. Modules now
include widget.InitializeCommonControls() instead.
2019-08-23 21:18:51 -07:00
Chris Cummer
4e46fff145 Move the utils.go file into the /utils directory 2019-08-05 10:50:12 -07:00
Chris Cummer
06a785d770 Rename 2019-08-05 08:01:21 -07:00
Chris Cummer
d372e1029f Rename addView() to createView() 2019-08-04 23:21:46 -07:00
Chris Cummer
787d1a3ba9 BarGraph supports customizable titles in config 2019-08-04 23:14:44 -07:00
Chris Cummer
b6b695290c Extract common funcitons from BarGraph and TextWidget into Base 2019-08-04 23:00:09 -07:00
Chris Cummer
275ea37a01 Extract common attributes from BarGraph and TextWidget into Base 2019-08-04 22:10:00 -07:00
Chris Cummer
98eb3c9013 Bring BarGraph constructor up to parity with TextWidget 2019-08-04 22:02:14 -07:00
Chris Cummer
dbc047516d Move all components responsible for module composition into /view 2019-08-04 21:42:40 -07:00
Chris Cummer
94d63306d4 Move Bargraph functionality into /view 2019-08-04 21:21:16 -07:00