Commit Graph

254 Commits

Author SHA1 Message Date
pdlla
cb1959fe63 correct test 2021-06-13 16:32:12 -07:00
pdlla
f572a3ed89 remove old comments 2021-06-12 21:04:33 -07:00
pdlla
70a909098b adjust TextAlignment_Right cursorTag position 2021-06-12 20:59:21 -07:00
pdlla
cce5ff5c33 hlint 2021-06-12 20:58:52 -07:00
pdlla
494a52073a fix bug in wrapWithOffsetAndAlignment and add tests 2021-06-12 20:43:07 -07:00
pdlla
97e0c65617 consolidate DisplayLinesWithAlignment and DisplayLines 2021-04-12 18:08:27 -07:00
Ali Abrar
95141a8a15
Merge pull request #43 from reflex-frp/aa/pdlla/layout2
New Focus and Layout managers, remove VtyWidget and replace with classes, reorganize
2021-04-10 22:59:58 -04:00
Ali Abrar
ee1fff9783 ci: rebuild github action cache 2021-04-09 21:43:42 -04:00
Ali Abrar
478b1f0d52 Remove extra MonadNodeId constraints; Fix a few things pointed out in review 2021-04-09 21:33:08 -04:00
Ali Abrar
3f34308e16 Merge branch 'develop' into aa/pdlla/layout2 2021-04-09 14:05:51 -04:00
Ali Abrar
b4183982e4 Update Changelog 2021-04-09 14:03:04 -04:00
Ali Abrar
67379e417e Merge remote-tracking branch 'pdlla/zipperalign' into develop 2021-04-09 14:00:50 -04:00
Ali Abrar
d80fe2dd5b
Update src/Reflex/Vty/Widget/Layout.hs
Co-authored-by: pdlla <chippermonky@gmail.com>
2021-04-09 13:55:18 -04:00
pdlla
a7a0bae338 manually specify tests instead of using hspec-discover 2021-04-05 09:43:44 -07:00
Ali Abrar
cf82eec73c input: Fix inputInFocusedRegion so that clicked node can _gain_ focus 2021-03-26 12:40:52 -04:00
Ali Abrar
b7f7b18a20 Remove Switchable since it's unused 2021-03-26 02:03:50 -04:00
Ali Abrar
8ad58618ee Fixup doc 2021-03-26 01:56:44 -04:00
Ali Abrar
df766a01b3 should go in misc section 2021-03-26 01:54:15 -04:00
Ali Abrar
f626a98823 Fix examples again 2021-03-26 01:49:46 -04:00
Ali Abrar
e3df5c0f63 Get rid of VtyWidget and VtyWidgetCtx. Move functions to more appropriate modules; Consistent naming 2021-03-26 01:45:48 -04:00
Ali Abrar
d8453a9308 Fix examples 2021-03-25 23:58:44 -04:00
Ali Abrar
5f97c0f858 Start eliminating VtyWidget
* Replace HasDisplaySize with HasDisplayRegion
* Add a DisplaySize monad transformer
* Remove display size information from VtyWidgetCtx
* Rename ImageWriter to HasImageWriter
* Introduce an ImageWriter monad transformer
* Remove the image writer from VtyWidget
*
2021-03-25 23:50:11 -04:00
Ali Abrar
461721c313 example: cpu: use grout instead of tile; fix warnings 2021-03-25 13:35:22 -04:00
Ali Abrar
5170744404 example: colored cpu output 2021-03-24 21:56:14 -04:00
Ali Abrar
3d5967f401 widgets: fill now takes a char behavior; update cpu example 2021-03-24 20:54:35 -04:00
Ali Abrar
32e74f65d7 boxTitle's title is now a behavior 2021-03-24 15:34:23 -04:00
Ali Abrar
c870264921 example: add cpu usage indicator example 2021-03-24 15:03:51 -04:00
Ali Abrar
f458c84079 focus: a -1 focus shift with nothing focused should focus last element 2021-03-24 13:51:55 -04:00
Ali Abrar
565fec0831 example: Move extensions to cabal file 2021-03-24 13:18:09 -04:00
Ali Abrar
1fddcbac96 Derive MonadIO for Layout and Focus 2021-03-24 13:15:45 -04:00
Ali Abrar
d91e22d816 layout: fix bug in distribution of available space when it cannot be evenly distributed 2021-03-24 13:15:16 -04:00
Ali Abrar
5e82cc12f7 focus: move anyChildFocused into appropriate section 2021-03-23 13:47:14 -04:00
Ali Abrar
50240e7047 Use hoist to simplify and de-dupe some instance definitions 2021-03-23 12:48:17 -04:00
Ali Abrar
c58ee1553b Add mapImages to ImageWriter 2021-03-23 01:14:46 -04:00
Ali Abrar
945321b55a Update changelog 2021-03-23 00:55:01 -04:00
Ali Abrar
0b0828a522 Add localInput, anyChildFocused, and filterKeys for input filtering 2021-03-23 00:51:29 -04:00
Ali Abrar
fe6a26e78e Add changelog notes for new layout 2021-03-22 21:05:18 -04:00
Ali Abrar
96f3d82da2 Merge remote-tracking branch 'origin/aa/pdlla/layout2' into aa/layout-refactor 2021-03-22 20:30:31 -04:00
Ali Abrar
eb0e4992a5 Activate common extensions in cabal file 2021-03-22 20:06:15 -04:00
Ali Abrar
34847fbbb7 Merge remote-tracking branch 'origin/develop' into aa/pdlla/layout2 2021-03-22 19:36:38 -04:00
Ali Abrar
b41724c88d examples: Update task list example 2021-03-22 14:44:16 -04:00
Ali Abrar
f51b16582e layout: use default values in place of partial patterns 2021-03-22 14:42:59 -04:00
Ali Abrar
158d77e3ad input: add set value event to checkbox configuration 2021-03-22 14:42:20 -04:00
Ali Abrar
4dc115fa67 examples: enable warnings 2021-03-22 14:41:57 -04:00
Ali Abrar
f64478cb5f layout: allow children of grout to obtain focus 2021-03-22 12:58:49 -04:00
Ali Abrar
d2b18b0c60 input: Add keyboard controls to checkbox 2021-03-22 12:58:29 -04:00
Ali Abrar
92e3c8cebe examples: Fix scrolling text example 2021-03-22 12:26:14 -04:00
Ali Abrar
9591e80af6 examples: Update testBoxes 2021-03-22 12:22:55 -04:00
Ali Abrar
254f9a6bfd Improve documentation of Layout and Focus 2021-03-19 14:34:43 -04:00
Ali Abrar
c2768eb1c0 Adjustable instances for Focus and Layout 2021-03-19 13:24:05 -04:00