Commit Graph

2052 Commits

Author SHA1 Message Date
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
Jonathan Daugherty
2d6f90c629 Remove demo program screenshots, which are both stale and difficult to maintain and thus possibly misleading 2023-06-15 14:10:00 -07:00
Jonathan Daugherty
f0b452f186 Update copyright 2023-06-13 16:55:53 -07:00
Jonathan Daugherty
4b40476d5d Add timeloop to featured projects 2023-05-28 09:34:14 -07:00
Jonathan Daugherty
e755ea7e9b README: add more contribution guidelines 2023-05-17 16:24:24 -07:00
Jonathan Daugherty
ae83d17c18 Bump version, update changelog 2023-05-12 16:59:01 -07:00
Jonathan Daugherty
753730eb51 FocusRing: derive Show 2023-05-12 16:58:28 -07:00
Jonathan Daugherty
6d9d8a71c0 Typo fix 2023-05-10 13:07:46 -07:00
Jonathan Daugherty
a8fff194e6 Resolve warning 2023-05-10 13:07:01 -07:00
Jonathan Daugherty
66686cd56a Bump version, update changelog 2023-05-10 13:06:25 -07:00
Jonathan Daugherty
e93c3fb1e1 Core: add forceAttrAllowStyle 2023-05-10 13:02:42 -07:00
Jonathan Daugherty
743fd2726b More editing nits 2023-05-07 22:10:02 -07:00
Jonathan Daugherty
bbd7250123 Editing nit 2023-05-07 22:07:11 -07:00
Jonathan Daugherty
d1121320bc Nit 2023-05-07 22:01:27 -07:00
Jonathan Daugherty
ea04c60681 Brick.Forms: clarify how attributes get used 2023-05-07 18:52:18 -07:00
Jonathan Daugherty
1cc1845ee3
Merge pull request #463 from kostmo/filebrowser-code-simplification
simplify FileBrowser selection code, fix bracket lints
2023-05-06 10:49:52 -07:00
Karl Ostmo
5878452d02 simplify fileBrowser selection code, fix bracket lints 2023-05-05 23:41:56 -07:00
Jonathan Daugherty
a797c86da5
Merge pull request #461 from Thecentury/readme-brickudoku 2023-05-02 07:05:38 -07:00
Mikhail Brinchuk
e1904984a6 Add Brickudoku 2023-05-02 11:34:00 +02:00
Jonathan Daugherty
b98acee550 Bump version, update changelog 2023-04-13 20:56:32 -07:00
Jonathan Daugherty
b56f3f1833
Merge pull request #458 from mlang/GHC-58520 2023-04-13 09:04:20 -07:00
Mario Lang
aeb5d3f86b [GHC-58520] [-Wtype-equality-requires-operators]
The use of ‘~’ without TypeOperators will become an error in a future GHC release
2023-04-13 17:53:28 +02:00
Jonathan Daugherty
a27b0ccc98
Merge pull request #457 from mlang/base-4.18
Allow building with base-4.18 (GHC 9.6)
2023-04-12 16:28:32 -07:00
Mario Lang
bb3b403047 Allow building with base-4.18 (GHC 9.6) 2023-04-13 00:48:17 +02:00
Jonathan Daugherty
946202be66 README: add haddock link 2023-04-06 11:45:51 -07:00
Jonathan Daugherty
cd8fce1475 renderForm: issue a visibility request for the focused form field 2023-03-21 20:54:14 -07:00
Jonathan Daugherty
b94819ac4c
Merge pull request #453 from refaelsh/fix-unused-packages
Add unused package detection
2023-03-15 11:45:02 -07:00
refaelsh
3f825ee733 Add unused package detection 2023-03-15 19:55:53 +02:00
Jonathan Daugherty
aad074d946
Merge pull request #449 from adql/Util/style 2023-03-08 06:51:04 -08:00
Amir Dekel
90e948700f Add a function to create an attribute from a style
It's analogous to the existing `fg` and `bg` functions.
2023-03-08 09:37:50 +02:00
Amir Dekel
683b68a548 Fix wording mistake 2023-03-08 09:37:15 +02:00
Jonathan Daugherty
473248cdf5
Merge pull request #448 from refaelsh/feature-add-gitter-to-readme
Add Giter
2023-03-06 11:53:30 -08:00
refaelsh
d9813632ea Add Giter 2023-03-06 21:51:08 +02:00