Commit Graph

39 Commits

Author SHA1 Message Date
Trevor Slocum b9d448d0f4 Improve Button cursor positioning 2021-06-05 11:00:31 -07:00
Trevor Slocum 454d759a42 Add Button.SetCursorRune and CheckBox.SetCursorRune
Cursors are now shown within Buttons and CheckBoxes by default.

Resolves #62.
2021-06-05 10:24:43 -07:00
Trevor Slocum 71e3cc57f7 Add relevant info to pages of the presentation demo
Also, only draw DropDown symbols when focused by default.

Resolves #61.
2021-06-04 20:42:44 -07:00
Trevor Slocum f8d1b2c63c Change default colors
Focused buttons and fields are now blue.
2021-05-30 21:05:31 -07:00
Trevor Slocum d7f1e2ab2a Add SetVisible and GetVisible to all widgets 2020-10-19 19:05:03 -07:00
Trevor Slocum ed5e6d94dd Remove return values from methods which return their primitive (breaks chaining) 2020-10-07 16:35:21 -07:00
Trevor Slocum 6b34a95e75 Print text using []byte instead of string, calculate string width using runewidth instead of uniseg 2020-10-06 13:16:37 -07:00
Andreas Bieber 41a24756f9 feat(FormItems): Allow specifying colors for focused state 2020-09-23 20:46:31 +02:00
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum cdeff20296 Use sync.RWMutex in all widgets
Resolves #30.
2020-08-02 10:06:34 -07:00
Trevor Slocum 49536324ce Rename Keys.SelectAlt to Keys.Select2 2020-06-10 09:52:50 -07:00
Trevor Slocum 8acccbefa7 Split up shortcuts into primary and secondary 2020-05-18 20:06:54 -07:00
Trevor Slocum 777d2f09fc Use Keys shortcuts with Button, CheckBox, Grid and Table 2020-05-18 19:49:25 -07:00
Trevor Slocum b65f57f2fc Rename matchesKeys to HitShortcut 2020-05-17 10:14:17 -07:00
Trevor Slocum 91afabde29 Allow multiple sets of keybindings to be provided to matchesKeys 2020-05-16 11:21:10 -07:00
Trevor Slocum 04a0149298 Add Keys to allow default keybindings to be modified 2020-05-15 16:17:41 -07:00
Trevor Slocum 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -07:00
rivo 1f765c8695 Merge pull request #422 from rivo/mouse
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum e29d4b73b9 Make cview thread-safe 2020-03-25 14:32:57 +00:00
Trevor Slocum 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Chris Miller a52eae5a0d Refactor EventMouse 2020-01-01 20:24:34 -08:00
Chris Miller ad59b43801 Get mouse actions rather than just mouse state 2020-01-01 20:18:40 -08:00
Chris Miller 5b47ba1f32 More mouse handling for primitives 2020-01-01 20:18:40 -08:00
Chris Miller 74b2573bf9 Added mouse handling 2020-01-01 20:18:40 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver 761e3d72da Added Primitive demo to go along with the GitHub Wiki entry on how to create your own primitive. 2018-03-19 21:25:30 +01:00
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 2018-01-17 17:13:36 +01:00
Oliver 626453b2a6 All primitives now offer a way to intercept all key events sent to them. Also made the global key event intercept handler more general/consistent. Resolves #22 2018-01-14 21:29:34 +01:00
Oliver 61d8ea30f8 Added support for wide unicode characters (e.g. Chinese). Resolves #9 2018-01-11 15:45:52 +01:00
Oliver 2874294d89 Added Styles variable with default colors for primitives. 2018-01-10 09:44:21 +01:00
Oliver e4f97a6436 Added links to Wiki to documentation. Also replaced screenshot with GIF screencast. 2018-01-07 16:39:06 +01:00
Oliver 9659be0e90 No need to explicitly hide the cursor in no-cursor primitives. 2017-12-28 22:19:36 +01:00
Oliver 3670319cd6 Fixed a number of bugs and added missing useful functions. 2017-12-27 16:04:21 +01:00
Oliver 8f59d491ee Added Table primitive. Still ironing out some minor issues. 2017-12-26 01:07:30 +01:00
Oliver 8eb4c5ef48 Added TextView. All subclasses of Box now also have inside padding. 2017-12-21 18:08:53 +01:00
Oliver 2bd80aa513 Added DropDown. Also needed to refactor a bit to reduce dependencies. 2017-12-18 20:04:52 +01:00
Oliver d5bf1a4ef0 Added list, improved existing primitives, and fixed a bunch of bugs. 2017-12-16 22:48:26 +01:00
Oliver b83a7766a6 Added frames (with headers/footers) and buttons. Extended form. 2017-12-15 23:03:01 +01:00