Commit Graph

33 Commits

Author SHA1 Message Date
Trevor Slocum 605d0123c1 Add Modal.SetButtonsAlign and Modal.SetTextAlign
Also, do not customize Modal window styling by default. Use GetForm and GetFrame to customize.

Resolves #71.
2021-07-17 12:52:49 -07:00
Trevor Slocum 36671ba7d3 Rename SetBorderPadding and GetBorderPadding as SetPadding and GetPadding 2020-10-26 10:41:47 -07:00
Trevor Slocum d7f1e2ab2a Add SetVisible and GetVisible to all widgets 2020-10-19 19:05:03 -07:00
Trevor Slocum 298510a685 Revert WordWrap signature change
Resolves #40.
2020-10-11 17:15:33 -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
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 2a76c36094 Clarify how to modify Modal title and appearance
Resolves #24.
2020-06-18 15:17:42 -07:00
Trevor Slocum 250da74d1e Clarify usage of Modal.GetForm 2020-06-10 09:43:31 -07:00
Trevor Slocum e0fafcdb01 Add Modal.GetForm and Modal.GetFrame
Resolves #19.
2020-06-09 15:51:28 -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
Trevor Slocum 51704b9844 Add documentation for GetChildren methods 2020-01-16 22:34:51 -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 0f6549646b Added SetFocus() to Modal, focuses on the provided button. Resolves #364 2019-11-27 18:27:26 +01:00
rivo cf9d115173
Merge pull request #269 from wedaly/master
Add functions to set background color, button text, and button background color on modal.
2019-05-14 18:34:53 +02:00
Oliver f16ba37c6a Added functions to remove all buttons from forms and from modals. Resolves #259 2019-05-14 16:48:29 +02:00
Will Daly 743e3fe55d Add functions to set background color, button text, and button background color on modal 2019-04-17 10:37:35 -07:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver a677b985cc Allowing the use of arrow keys in modal buttons, too. Resolves #167 2018-09-26 11:35:00 +02:00
Sam Whited 65c5186a20 Call modal done func on escape key
Fixes #150
2018-08-03 13:03:11 -05:00
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 2018-01-17 17:13:36 +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 8c9be84ef8 Various improvements. 2018-01-01 21:50:20 +01:00
Oliver b8e50f0e44 Embedding frame in modal instead of deriving from it, thus hiding frame's functions. 2017-12-30 22:08:43 +01:00
Oliver 8eb4c5ef48 Added TextView. All subclasses of Box now also have inside padding. 2017-12-21 18:08:53 +01:00
Oliver dad7891c89 Added Checkbox, Modal, and Pages. 2017-12-20 20:54:49 +01:00