Commit Graph

2084 Commits

Author SHA1 Message Date
Jonathan Daugherty
89a317a83b Add documentation upload script 2023-12-29 16:48:03 -08:00
Jonathan Daugherty
fc6f5eed07 Bump version, update changelog 2023-12-21 09:33:16 -08:00
Jonathan Daugherty
2e0925303d Forms: fix check for field focus in renderFormFieldState when the focus mode is ShowAugmentedField 2023-12-21 09:32:47 -08:00
Jonathan Daugherty
293df29db8 Bump version, update changelog 2023-12-21 09:06:17 -08:00
Jonathan Daugherty
d8f076baca Forms: add new ShowAugmentedField constructor and behavior to FormFieldVisibilityMode 2023-12-21 09:06:07 -08:00
Jonathan Daugherty
2207b45731 Forms: rename ShowAugmentedField to ShowCompositeField to make its name better match its behavior 2023-12-21 09:05:32 -08:00
Jonathan Daugherty
acec57cb03 Bump version, update changelog 2023-12-17 16:44:18 -08:00
Jonathan Daugherty
12fff78b9e Whitespace 2023-12-17 16:41:21 -08:00
Jonathan Daugherty
10d247ec9a Forms: add FormFieldVisibilityMode type and setFieldVisibilityMode function (fixes #496) 2023-12-17 16:40:46 -08:00
Jonathan Daugherty
31f94e1b76 Update test suite to use vty-crossplatform 2023-12-15 09:34:56 -08:00
Jonathan Daugherty
01827e29c7 Remove stale import 2023-12-13 20:38:39 -08:00
Jonathan Daugherty
4d694988d8
Merge pull request #495 from hapytex/issues/typo-guide 2023-12-02 23:32:27 -08:00
willeM_ Van Onsem
4e16e2834c
fixed typo in guide.rst
Was reported by https://stackoverflow.com/questions/77592508/brick-documentation-guide
2023-12-03 08:30:08 +01:00
Jonathan Daugherty
d93cdfca45 defaultMain: update documentation 2023-11-09 16:37:04 -08:00
Jonathan Daugherty
6ca86613b5 Bump version, update changelog 2023-11-09 16:34:42 -08:00
Jonathan Daugherty
b8c7afc9e9 defaultMain: shut down Vty handle returned by customMainWithDefaultVty 2023-11-09 16:33:37 -08:00
Jonathan Daugherty
d7565bc42f Add project 2023-11-09 08:06:59 -08:00
Jonathan Daugherty
6cb85dd46c
RADME.md: add additional note about platform support 2023-11-05 15:25:19 -08:00
Jonathan Daugherty
986266c18a Bump version, update changelog 2023-11-03 21:08:56 -07:00
Jonathan Daugherty
c1aef1106e Add Brick.Main.customMainWithDefaultVty (fixes #488) 2023-11-03 17:25:12 -07:00
Jonathan Daugherty
3852513d21
Merge pull request #487 from erikd/master
Make it build with ghc 9.8 (update deps only)
2023-10-31 20:03:05 -07:00
Erik de Castro Lopo
aabdfd1949 Make it build with ghc 9.8 (update deps only) 2023-11-01 10:51:05 +11:00
Jonathan Daugherty
4917138095 Update test suite to build with vty-unix and vty 6 2023-10-30 15:13:47 -07:00
Jonathan Daugherty
f1c680201e Raise vty lower bound to 6.0 2023-10-30 15:02:26 -07:00
Jonathan Daugherty
bc1eaf660b Merge master 2023-10-30 14:59:26 -07:00
Jonathan Daugherty
28432d49df Bump version, update changelog 2023-10-25 10:18:04 -07:00
Jonathan Daugherty
016d97fecd Merge branch 'refactor/vty-crossplatform' of github.com:jtdaugherty/brick into refactor/vty-crossplatform 2023-10-25 10:09:49 -07:00
Jonathan Daugherty
814302edda README: add a note about Windows support 2023-10-25 10:09:44 -07:00
Jonathan Daugherty
687574e80d guide: edit 2023-10-24 19:40:36 -07:00
Jonathan Daugherty
d2fedbbae6 Merge branch 'refactor/vty-crossplatform' of github.com:jtdaugherty/brick into refactor/vty-crossplatform 2023-10-24 14:38:10 -07:00
Jonathan Daugherty
c1eeeb1d01 guide: update for vty 6 2023-10-24 14:38:05 -07:00
Jonathan Daugherty
53d9b207e2 Migrate from unix to unix-compat 2023-10-24 13:22:59 -07:00
Jonathan Daugherty
d442145c78 Merge branch 'master' into refactor/vty-crossplatform 2023-10-22 19:55:22 -07:00
Jonathan Daugherty
245044cc12 Bump version, update changelog 2023-09-02 10:16:18 -07:00
Jonathan Daugherty
6b7195cf6e Split up ScrollbarRenderer type into vertical and horizontal versions
This change helps users avoid undesirable behavior by accidentally
using the wrong type of renderer to draw a scroll bar. This change:

* Splits up the ScrollbarRenderer type into two new types,
  VScrollbarRenderer and HScrollbarRenderer, with nearly identical
  fields except that each field now has some 'V' or 'H' in it.

* Renames 'scrollbarAllocation' to 'scrollbar(Height|Width)Allocation'
  depending on the renderer type.

* Updates the Core API to take values of the new renderer types as
  appropriate.

* Updates the types of the default renderers.

* Updates the demo program that uses the custom renderers.
2023-09-01 10:19:48 -07:00
Jonathan Daugherty
480e59cbe8 Core: haddock edits 2023-09-01 10:09:21 -07:00
Jonathan Daugherty
0c92c0dd74 Core: haddock edits 2023-09-01 10:08:10 -07:00
Jonathan Daugherty
c1aa33098b ViewportScrollbarsDemo.hs: nit 2023-09-01 10:02:56 -07:00
Jonathan Daugherty
324b5adfbd Add scrollbar space allocation control
This change is motivated by a desire to be able to control how scroll
bars are rendered adjacent to viewport contents. It isn't always
desirable to render them right up against the contents; sometimes,
spacing would be nice between the bar and contents, for example. In
general, we want users to be able to control more aspects of how scroll
bars are drawn. This change is a step in that direction. This change
won't affect any users who are using the default scroll bar renderers.

This change:

* Adds a new field to ScrollbarRenderer, scrollbarAllocation :: Int,
  which specifies the height (for horizontal scroll bars) or width (for
  vertical ones) of the region in which the bar is rendered. This allows
  scroll bar element widgets to take up more than one row in height (for
  horizontal scroll bars) or more than one column in width (for vertical
  ones).

* Updates the scroll bar rendering logic to clamp scroll bar handles to
  one row in height (for vertical scroll bars) or one column in width
  (for horizontal ones) since we need to be able to assume the size
  of the handles when computing the size of the scroll bar and trough
  regions.

* Updates programs/ViewportScrollbarsDemo.hs to demonstrate the use of
  the new allocation feature to draw a vertical scroll bar that takes up
  more than one column in various ways.
2023-09-01 09:36:12 -07:00
Jonathan Daugherty
250c8b471b
Merge pull request #483 from chhackett/refactor/vty-crossplatform
Updating to support building on Windows.
2023-08-20 18:07:32 -07:00
Chris Hackett
d01006e0f0 Just a little cleanup. 2023-08-20 13:46:38 -04:00
Chris Hackett
820b479136 Now using unix-compat. Removed ifdef conditionals. 2023-08-20 13:41:10 -04:00
Chris Hackett
b6b3324f38 Updating to support building on Windows. 2023-08-20 12:27:38 -04:00
Jonathan Daugherty
99e082720a Merge branch 'master' into refactor/vty-crossplatform 2023-08-20 08:39:58 -07:00
Jonathan Daugherty
dc046ca8ef Update core library and demo programs to use vty-crossplatform to initialize the terminal 2023-08-20 08:37:40 -07:00
Jonathan Daugherty
2776b3c87b ThemeDemo: typo 2023-08-15 14:47:52 -07:00
Jonathan Daugherty
f1e57e6b22 BorderDemo: nit 2023-08-15 14:45:54 -07:00
Jonathan Daugherty
417571b9a1 BorderDemo: nit 2023-08-15 14:43:36 -07:00
Jonathan Daugherty
339ce5243c BorderDemo: nit 2023-08-15 14:42:43 -07:00
Jonathan Daugherty
3282e009d5 README: nit 2023-08-07 15:09:19 -07:00