Commit Graph

758 Commits

Author SHA1 Message Date
tznind
8d255ffe37 Fix test 2023-02-25 22:48:13 +00:00
tznind
9dcb34eae0 Fix test 2023-02-25 22:22:13 +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
Thomas Nind
a068933f19 Revert "Merges latest LineCanvas into TileView" 2023-02-24 21:57:58 +00:00
Thomas Nind
edf766e56b Merge branch 'splitcontainer' into tznind-splitcontainer 2023-02-24 19:49:02 +00:00
Tig
971062c93d Merge branch 'develop' into splitcontainer 2023-02-23 08:08:55 +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
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
369cd674ed merged line canvas etc 2023-02-21 01:27:43 +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
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
tznind
14077058d4 Make Ctrl+F10 toggle split line focusability 2023-02-18 20:39:45 +00:00
Tig Kindel
585857b1de more expiermnets 2023-02-15 16:00:21 +07:00
Thomas
85a4471004 Remove the Draw method from LineCanvas and make GenerateImage easier to use 2023-02-14 22:11:18 +00:00
BDisp
721a8873b0 Removed Color.Invalid and added more unit tests. 2023-02-14 18:32:06 +00:00
Thomas
90a6c2c34c Support for drawing at an offset within client area 2023-02-13 22:08:05 +00:00
tznind
319fb8a3d4 Add TestLineCanvas_PositiveLocation 2023-02-13 08:09:37 +00:00
tznind
67cdb5645b Add tests for proper disposing 2023-02-13 02:06:35 +00:00
tznind
fd989430bc whitespace formatting fixes 2023-02-13 01:58:19 +00:00
tznind
235114e60d Fix LineCanvas not respecting X and Y of clip bounds 2023-02-13 01:54:01 +00:00
Tig Kindel
619a66aeef messing with offset location 2023-02-13 07:56:38 +07:00
Tig Kindel
6558af1c7c Revert "Merge branch 'splitcontainer' of tig:tznind/gui.cs into tznind-splitcontainer"
This reverts commit dc4fe69626, reversing
changes made to ccadf81b4d.
2023-02-12 11:10:11 +07:00
Tig Kindel
dc4fe69626 Merge branch 'splitcontainer' of tig:tznind/gui.cs into tznind-splitcontainer 2023-02-12 10:57:21 +07:00
Tig Kindel
09ab30b854 Merge branch 'develop' into tznind-splitcontainer 2023-02-12 09:38:26 +07:00
Thomas Nind
d555576a13 Merge branch 'develop' into line-canvas-style-mixing 2023-02-11 08:19:03 +00:00
Thomas
985df1d3c2 Move tests to Core folder and namespace to Terminal.Gui.CoreTests 2023-02-11 08:17:35 +00:00
Tig Kindel
56eeadf934 Merge branch 'develop' into tznind-splitcontainer 2023-02-11 10:54:34 +07:00
Thomas
a443ec7986 Refactor and simplify resolvers 2023-02-11 00:03:37 +00:00
Thomas
f716dbe596 Implement corner border style mixing in LineCanvas 2023-02-10 23:29:07 +00:00
tznind
0261e4bda2 Fix tests for renaming View to ContentView 2023-02-09 18:52:51 +00:00
tznind
236cc42f41 Add disposal tests 2023-02-09 18:47:23 +00:00
BDisp
29b92a3610 Add unit test deleting a word with accented char. 2023-02-09 14:12:51 +00:00
Tig Kindel
00d46ee3f1 udpated unit tests 2023-02-09 05:55:51 -08:00
Tig Kindel
040bbc41cb merging tigs changes 2023-02-09 05:23:33 -08:00
Tig Kindel
9cb5e8c658 merging tigs changes 2023-02-09 05:23:06 -08:00
Tig
e92d2ccabe Merge branch 'develop' into splitcontainer 2023-02-09 09:40:12 +09:00
BDisp
03b20371f6 Fixes #2333. TextField is selecting badly a word on double click. 2023-02-08 19:17:15 +00:00
BDisp
5da7665e92 Fixes #2328. TextView Autocomplete triggered by cursor move. 2023-02-08 00:12:52 +00:00
Tig
ff8ac0faac Merge branch 'develop' into invisible-cursor-fix_2326 2023-02-08 07:25:36 +09:00
Tig Kindel
ea663ae113 fixing more merge screwups 2023-02-07 17:06:30 +09:00
Tig Kindel
44e734ae04 fixing merge screwups 2023-02-07 16:56:59 +09:00
Tig Kindel
2f2a4b4a42 merge fixes_2296 2023-02-07 16:47:02 +09:00
Tig Kindel
a052c6746c Merge branch 'develop' into fixes_2296_attribute_make 2023-02-07 16:35:21 +09:00
Tig Kindel
2b26ec7bfb merge fixes 2023-02-07 16:33:22 +09:00