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

31 Commits

Author SHA1 Message Date
Mathias Weber
7d9dd56aaa add static hot key assignments for text widgets 2018-10-15 22:51:35 +02:00
Chris Cummer
a48d15079a Remove RefreshedAt from TextWidget
This attribute is used for absolutely nothing. It doesn't need to exist.
2018-10-11 17:12:29 -04:00
Chris Cummer
15968718af Todo modal shows up much faster now, looks better 2018-10-01 16:44:51 -07:00
Nicholas Eden
d05300d849 allow changing of title color 2018-09-26 23:33:08 -07:00
Nicholas Eden
c717cecff9 Add option to set background and text color on a module basis, resolves #307 2018-09-26 21:30:54 -07:00
Chris Cummer
f650bb1698 Remove the app.Draw() gorountine
Prefer to have widgets force a draw when their data changes. This should
reduce draws (unless the user has a module installed that updates >=
1/sec, the old draw default).

This should also remove a source of some of the race conditions that
users were experiencing (though not all, there are still many).
2018-09-24 14:40:57 -07:00
Chris Cummer
72c192cabf Clean up a bunch of if statements based on govet results 2018-08-03 05:40:39 -07:00
Chris Cummer
985c41d3b6 Improve styling on focusable character identifier 2018-07-30 22:31:30 -07:00
Chris Cummer
beb0c43b07 Add character identifiers to focusable widgets
When no widget has focus, press the letter key to focus on the widget
assigned to that letter.

Example:

    GitHub (d)

    Press "d" to focus on the GitHub widget.
2018-07-30 15:51:19 -07:00
Chris Cummer
66868a3f49 Unexport colorFor() function 2018-07-26 13:50:37 -07:00
Chris Cummer
23f53a06b9 Make Bargraph widget work with new module lazy-loading 2018-06-08 15:34:31 -07:00
Hossein Mehrabi
9b7f31877d added Disable method 2018-06-08 05:28:45 +04:30
Hossein Mehrabi
2de364a2ef read widget title from config file 2018-06-04 05:58:37 +04:30
Chris Cummer
9e49c18c44 Close #84. Add wtf.colors.background config option 2018-05-31 08:52:37 -07:00
Chris Cummer
cd5a7968c4 Fix bug with positioning in which I hard-coded the positions because....? 2018-05-18 12:35:59 -07:00
Chris Cummer
8bb9115538 A very basic start to adding some unit tests 2018-05-18 11:54:39 -07:00
Chris Cummer
a62b910893 Closes #43. Add CommandRunner module to the app.
CommandRunner allows you to define a terminal command and arguments, run
it on a schedule, and view the output.

Examples:

   ping -3 cisco.com
2018-05-17 17:15:03 -07:00
Chris Cummer
2ecd5e4b84 Closes #44. Cannot tab to disabled widgets. 2018-05-16 17:22:14 -07:00
Chris Cummer
7adc0cdb11 Bringing back the Status widget 2018-05-14 21:04:37 -07:00
Chris Cummer
4727255df6 Focusable widgets get their own border color 2018-05-02 14:27:18 -07:00
Chris Cummer
037c90db85 Widget#focus now a thing
Widgets can inform whether or not they should get tab focus.

Widgets that provide additional functionality should return true.

Widgets that have no extra capability should return false.

This allows the FocusTracker to only tab through and focus on widgets
for which it provides value.
2018-04-28 23:41:51 -07:00
Chris Cummer
3de253bd0d Better color config standardization. It's not just random anymore 2018-04-23 09:17:54 -07:00
Chris Cummer
12ef3919dc Cleanup of stray files. Don't need so many single-use packages 2018-04-18 17:51:43 -07:00
Chris Cummer
912de2fa11 Can focus/blur widgets (with focus border color) 2018-04-17 04:26:18 -07:00
Chris Cummer
693a04b5e1 Removed a bunch of common boilerplate code from widget initialization 2018-04-15 13:08:17 -07:00
Chris Cummer
27a267b123 Cleaner config format and added simple_config.yml example 2018-04-10 11:28:48 -07:00
Chris Cummer
01aab4cc53 wtf.Position into its own file 2018-04-08 05:04:33 -07:00
Chris Cummer
9bda045ce1 Streamlining the widget creation process a bit more. Coords into config 2018-04-07 23:36:05 -07:00
Chris Cummer
79bc8216d6 Don't display disabled widgets 2018-04-07 14:36:13 -07:00
Chris Cummer
ae13d52665 Enabled half-measure: widgets won't run if disabled (still need to not display) 2018-04-07 14:20:21 -07:00
Chris Cummer
b4bc6d4509 Remove a ton of duplication around TextView widget creation 2018-04-07 13:55:08 -07:00