Commit Graph

3874 Commits

Author SHA1 Message Date
tznind
016e377e8f Adjust suggestions to be gray and properly update on keystrokes 2023-02-25 20:44:16 +00:00
tznind
f87076483c Update to latest splitcontainer API 2023-02-25 20:35:44 +00:00
tznind
fb4e2fc985 Merge branch 'splitcontainer' into fs 2023-02-25 20:27:00 +00:00
Thomas Nind
bd066c0bbe Merge branch 'gui-cs:develop' into fs 2023-02-25 20:20:20 +00:00
tznind
7929084591 Workaround for changing CanFocus throwing Exceptions sometimes 2023-02-25 16:36:32 +00:00
tznind
ed17727eb1 Fix keyboard tab navigation problems 2023-02-25 16:09:00 +00:00
Tig Kindel
517ec9e988 fixed merge issues 2023-02-24 17:16:08 -07:00
Tig Kindel
5c659110bf Merge branch 'v1_setrelativelayout_improvement' into v2 2023-02-24 17:11:54 -07:00
Tig Kindel
ed177303c7 View spec update 2023-02-24 17:05:12 -07:00
Tig Kindel
fafb68be06 Merge branch 'develop' into v2 2023-02-24 15:54:07 -08:00
Thomas Nind
44c697840a Merge pull request #160 from tznind/revert-158-tznind-splitcontainer
lRevert 158 tznind splitcontainer
2023-02-24 22:08:57 +00:00
Thomas Nind
a068933f19 Revert "Merges latest LineCanvas into TileView" 2023-02-24 21:57:58 +00:00
Tig Kindel
7fbece9dc4 Pos.Combine unit tests 2023-02-24 12:52:43 -08:00
Thomas Nind
6be09720b2 Merge pull request #158 from tig/tznind-splitcontainer
Merges latest LineCanvas into TileView
2023-02-24 19:50:29 +00:00
Thomas Nind
edf766e56b Merge branch 'splitcontainer' into tznind-splitcontainer 2023-02-24 19:49:02 +00:00
Thomas
3c3a014814 Fix not calling base constructor 2023-02-24 19:42:39 +00:00
Tig Kindel
a0c44b7cdb restored Generic.cs 2023-02-25 07:42:33 +13:00
Tig Kindel
c11b4e3678 fixed more bugs exposed by Pos.Combine bugfix 2023-02-25 07:40:40 +13:00
Tig Kindel
eb3af67027 fixing bugs caused by Pos.Combine bugfix 2023-02-25 07:15:41 +13:00
Tig Kindel
c73292378b merged from develop after accident 2023-02-25 05:45:26 +13:00
Tig Kindel
d04bf94c74 merged from develop after accident 2023-02-25 05:42:43 +13:00
Tig Kindel
7d36a8490e Merge branch 'develop' into v1_setrelativelayout_improvments 2023-02-25 05:39:02 +13:00
Tig Kindel
121941497e fixed da bug; also fixed pwsh clipboard tests 2023-02-24 20:31:04 +13:00
Tig Kindel
a8b75b6219 Refactored SetRelativeLayout etc; looks good but tests fail 2023-02-24 20:15:02 +13:00
Tig
971062c93d Merge branch 'develop' into splitcontainer 2023-02-23 08:08:55 +13:00
Tig Kindel
b5de3e6916 Merge branch 'develop' of tig:gui-cs/Terminal.Gui into develop 2023-02-21 14:25:10 +13:00
BDisp
9cfa78a033 Fixes #2354. View.Redraw doesn't clear itself and PositionCursor doesn't ensure focus when a prior view was disabled. (#2355)
* Fixes #2354. View should have a IgnoreHasFocusPropertyOnRedraw property to prevent unnecessary derived class.

* Removed IgnoreHasFocusPropertyOnRedraw property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-21 14:23:40 +13:00
Tig Kindel
d699b1b288 Merge branch 'v2' of tig:gui-cs/Terminal.Gui into v2 2023-02-21 14:09:23 +13:00
BDisp
cacfe0d772 Fixes #2371. V2 needs be merged with develop and be fixed from errors. (#2372)
* Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)

* Proves that the issue #2331 don't have reason to happen.

* fixes #2336

* Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside

* More appropriate solution for the issue #2331.

* Start refactoring LineCanvas for mixing line style support (e.g. double into single)

* Add remaining resolvers

* Implement corner border style mixing in LineCanvas

* Refactor and simplify resolvers

* Move tests to Core folder and namespace to Terminal.Gui.CoreTests

* Fixes #2333. TextField is selecting badly a word on double click.

* Add unit test deleting a word with accented char.

* Fixes 2331. ScrollView may not be honoring clip region.

* Add a custom button scenario.

* Fixes #2350. Clipping broke (see Clipping scenario).

* Is preferable use NeedDisplay instead of Bounds.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>

* Fixes ASCIICustomButton scenario.

* Adds Snake Scenario (#2353)

* Add empty snake scenario

* Move snake head around

* Snake now has a tail

* Rest of logic implementation

* Ctrl K D layout fixes

* Game gets faster as you collect more apples

* Adjust speed increase rate down

* Use white on black for snake and border and red for apple

* Fix ScenarioTests not Disposing Scenario

* Add disposes and fix to use LineCanvas.GenerateImage

* Fix stack overflow, doh!

---------

Co-authored-by: Tig <tig@users.noreply.github.com>

* Fixes 2368. Nested views with height of 1 not rendering correctly.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>
Co-authored-by: Thomas Nind <31306100+tznind@users.noreply.github.com>
2023-02-21 14:06:30 +13:00
Tig Kindel
2b0adf072d Merge branch 'visual_style_manager' into v2_config_manager 2023-02-21 13:58:58 +13:00
BDisp
47eb43fd6e Fixes 2368. Nested views with height of 1 not rendering correctly. (#2370) 2023-02-21 13:55:07 +13:00
Thomas Nind
40af5ed98a Adds Snake Scenario (#2353)
* Add empty snake scenario

* Move snake head around

* Snake now has a tail

* Rest of logic implementation

* Ctrl K D layout fixes

* Game gets faster as you collect more apples

* Adjust speed increase rate down

* Use white on black for snake and border and red for apple

* Fix ScenarioTests not Disposing Scenario

* Add disposes and fix to use LineCanvas.GenerateImage

* Fix stack overflow, doh!

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-21 11:59:46 +13:00
Tig Kindel
6bb90edcbf Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)"
This reverts commit c85ff954aa.
2023-02-21 11:53:10 +13:00
tznind
67a9e058d1 Switch to GenerateImage 2023-02-20 17:01:05 +00:00
Tig Kindel
369cd674ed merged line canvas etc 2023-02-21 01:27:43 +13:00
Tig Kindel
a824417145 attempting merge 2023-02-21 01:15:08 +13:00
Tig
6f2ac6926c Merge branch 'develop' into splitcontainer 2023-02-21 01:10:24 +13:00
BDisp
c85ff954aa Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)
* Proves that the issue #2331 don't have reason to happen.

* fixes #2336

* Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside

* More appropriate solution for the issue #2331.

* Start refactoring LineCanvas for mixing line style support (e.g. double into single)

* Add remaining resolvers

* Implement corner border style mixing in LineCanvas

* Refactor and simplify resolvers

* Move tests to Core folder and namespace to Terminal.Gui.CoreTests

* Fixes #2333. TextField is selecting badly a word on double click.

* Add unit test deleting a word with accented char.

* Fixes 2331. ScrollView may not be honoring clip region.

* Add a custom button scenario.

* Fixes #2350. Clipping broke (see Clipping scenario).

* Is preferable use NeedDisplay instead of Bounds.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>
2023-02-21 00:53:38 +13:00
Tig
9425b2a720 Fixes #2181 - (Really) Adds configuration manager (#2365) 2023-02-21 00:34:18 +13:00
Tig
eb90d6abff Merge pull request #2363 from tig/v2_config_manager
Fixes #2181 - Adds configuration manager
2023-02-21 00:22:11 +13:00
Tig Kindel
1079793e9e Merge branch 'develop' into v2_config_manager 2023-02-21 00:15:25 +13:00
Tig Kindel
67bee8b87c updated v2 branch to develop 2023-02-21 00:02:19 +13:00
Tig Kindel
29ccbe36b7 attempting to merge 2023-02-20 23:40:42 +13:00
Tig Kindel
b7fe14ecff attempting to merge 2023-02-20 22:54:39 +13:00
Tig
81d3ad8aeb Merge pull request #2352 from tznind/animation
Adds Animation Scenario
2023-02-20 22:29:49 +13:00
Tig
3ecf42a61c Merge pull request #2344 from tznind/line-canvas-fix-offsets
Fixes 2343 - LineCanvas not respecting X and Y of clip bounds
2023-02-20 22:17:17 +13:00
Thomas Nind
1e5ab49827 Merge branch 'develop' into line-canvas-fix-offsets 2023-02-19 17:06:21 +00:00
tznind
0d022da293 Merge branch 'splitcontainer' of https://github.com/tznind/gui.cs into splitcontainer 2023-02-18 21:43:04 +00:00
Thomas Nind
6f8ae9b12a Merge branch 'develop' into splitcontainer 2023-02-18 21:42:50 +00:00
tznind
c5243ffe66 Fix layout bug in first tile when orientation is horizontal 2023-02-18 21:41:30 +00:00