Trevor Slocum
d11681497c
Change default colors (fields and buttons are now green)
2021-06-03 20:41:09 -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
597052a7e7
Add FocusManager
2020-10-16 09:25:21 -07:00
Trevor Slocum
4ac48a9748
Replace FormItem.SetAttributes with individual methods
2020-10-09 08:37:54 -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
2763609e05
Store InputField text data as []byte instead of string
2020-10-07 08:40:36 -07:00
Trevor Slocum
d5edb975b6
Store ListItem text as []byte instead of string
2020-10-06 18:19:40 -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
5a3409bfd6
Release lock on InputField while executing DoneFunc and FinishedFunc
2020-10-02 17:00:57 -07:00
Trevor Slocum
db81e43e00
Remove wrapper methods
2020-10-02 16:28:32 -07:00
Trevor Slocum
e1cd3be7bb
Lock Mutex when setting InputField attributes
2020-10-02 11:23:49 -07:00
Andreas Bieber
9acd4bf821
fix(inputfield): Display suggestion correctly
2020-10-01 19:58:30 +02:00
Trevor Slocum
018a7e47fe
Allow autocomplete selection value customization
2020-09-30 12:14:51 -07:00
Trevor Slocum
357a49e9e7
Do not set focus-related style attributes by default
2020-09-29 13:24:12 -07:00
Trevor Slocum
a709a929d9
Fix FormItem.SetAttributes race condition
...
Resolves #35 .
2020-09-28 22:34:38 -07:00
Trevor Slocum
89fa23ab00
Resolve lint warnings
2020-09-23 16:14:53 -07:00
Trevor Slocum
5505bb7a58
Document changes submitted by Andreas Bieber
2020-09-23 15:44:28 -07:00
Andreas Bieber
70857602a5
feat(FormItem): Replace `SetFormAttributes` with `SetAttributes`
...
BREAKING CHANGE:
`SetFormAttributes` has been removed. To migrate your project, use `SetAttributes` which expects any combination of attribute setters.
Example:
`formItem.SetAttributes(cview.WithLabelWidth(10), cview.WithLabelColor(tcell.ColorYellow))`
or
`formItem.SetAttributes(cview.WithBackgroundColor(tcell.ColorBlack))`
2020-09-23 20:54:48 +02:00
Andreas Bieber
9142563f22
feat(inputfield): Add ability to show a note below the inputfield
2020-09-23 20:54:48 +02:00
Andreas Bieber
75b6d31409
feat(inputfield/autocompletion): Draw selected autocomplete suggestion in `inputfield` without changing it till confirmed with `ENTER`
2020-09-23 20:46:36 +02:00
Andreas Bieber
d315a5c5b3
feat(List): Expose `ListItem`
...
BREAKING CHANGE:
- The signature of `SetChangedFunc` and `SetSelectedFunc` has changed to pass the newly exposed `ListItem` instead of its properties
- The signature of `AddItem` and `InsertItem` has changed to expect a `ListItem` instead of the properties them self
2020-09-23 20:46:36 +02:00
Andreas Bieber
22895b10bc
feat(inputfield): Expose setters for autocomplete list colors
2020-09-23 20:46:36 +02:00
Andreas Bieber
32ed5f11d7
chore(inputfield): Compile regex only once
2020-09-23 20:46:36 +02:00
Andreas Bieber
e7aaa8402f
fix(inputfield): Use correct regex to detect left or right word/non-word
2020-09-23 20:46:36 +02: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
d32ac6e3e9
Add InputField.GetCursorPosition and InputField.SetCursorPosition
2020-08-24 19:31:48 -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
de6819cc76
Fix applying ScrollBarNever to DropDown or InputField
2020-02-13 15:08:36 -08:00
Trevor Slocum
96f3c15040
Add scroll bar to List, DropDown, Table and TreeView
2020-02-01 07:27:15 -08: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
Trevor Slocum
b61132eddf
Fork tview as cview
...
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver
c3d1d4bcf9
Added autocomplete functionality to InputField. Resolves #299 , resolves #77
2019-07-08 09:34:06 +01:00
Oliver
8a9e26fab0
Hitting the Alt-key should not prevent input. Fixes #240
2019-03-24 19:21:52 +01:00
Oliver
8d5eba0c2f
Replaced runewidth.StringWidth() with my own implementation. Fixes #236
2019-03-19 12:13:40 +01:00
Delaney Gillilan
a38d2cdc9b
fix per @jr81
2018-11-18 13:15:59 -08:00
Oliver
ec12437564
InputField cursor position must also be adjusted when SetText() is called. Fixes #180
2018-11-10 09:17:39 +01:00
Oliver
61a4cf388a
Another fix for InputField. Fixes #176 , resolves #177
2018-11-05 11:09:49 +01:00
Oliver
60a1c63fa9
Accepting non-alt-mod keys as characters in InputField if they don't have a function. Fixes #176 (hopefully)
2018-10-29 17:30:58 +01:00
Oliver
990bc2ebcf
InputField can now be navigated freely. Resolves #103 , resolves #171 , resolves #162
2018-10-18 08:34:08 +02:00
Oliver
213c37c368
Fixed handling of combining unicode characters. Fixes #101
2018-05-03 08:05:11 +02:00
Oliver
f855bee020
Separated form item "done" function from "finished" function. Resolves #39
2018-04-19 21:34:03 +02:00
Oliver
5bd22542e5
For Form.GetFormItemByLabel() to work, we must not modify the label text. Fixes #94 , fixes #99
2018-04-09 21:07:03 +02: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