Commit Graph

584 Commits

Author SHA1 Message Date
BDisp
ae7a86f9a9 Fix ScrollBar that was returning more 2 position at end. 2024-09-06 16:43:53 +01:00
BDisp
66ec2de322 Fix more unit tests that were used with KeepContentInAllViewport as true and now is false by default. 2024-09-06 00:37:17 +01:00
BDisp
bd51356b56 Add unit test for KeepContentInAllViewport as false. 2024-09-06 00:26:46 +01:00
BDisp
84225fcdcb Fix unit test. 2024-09-06 00:22:02 +01:00
BDisp
8d346a8d5c Implement @tig scroll bars and fix some bugs. 2024-09-05 23:46:43 +01:00
BDisp
07d7162c8f Prevent Size being negative. 2024-09-04 19:53:24 +01:00
BDisp
f54ded3351 Add KeepContentInAllViewport to Scroll. 2024-09-04 19:41:42 +01:00
BDisp
7983500dfb Fix @tig branch errors. 2024-09-04 12:06:59 +01:00
BDisp
6c972c67c3 Add AutoHideScrollBar and ShowScrollIndicator properties. 2024-09-03 23:32:30 +01:00
BDisp
3e7d950a18 Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-09-02 23:53:29 +01:00
Tig
f2e531045a Merge branch 'v2_release' into v2_develop 2024-09-02 18:39:20 -04:00
BDisp
a83b8f195b Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-09-02 19:35:03 +01:00
BDisp
fa0085d9e4 ix some more bug, cleanup code and add more unit tests. 2024-09-02 12:54:25 -04:00
BDisp
1e9f2f4778 Fix some more bugs. Nullable is very treacherous. 2024-09-02 12:54:25 -04:00
BDisp
552f9ed0a8 Fix some bug, clean code and more unit tests. 2024-09-02 12:54:25 -04:00
BDisp
02a98f3fc2 Fixes #3700. ContextMenu pollutes Toplevel.MenuBar's key bindings 2024-09-02 12:54:25 -04:00
BDisp
1ccd54801b Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-09-02 11:53:12 +01:00
Thomas Nind
5b2e10e6d0 Fixes #3696 Remove custom navigation in FileDialog (#3712)
* Remove custom navigation in FileDialog and change Ok/Cancel to use AddButton

* Fix most tests

* Update drawing tests to use contents asserts instead

* Update positioning to be less absolute

* TableView to not swallow cursors if no selection change manifests

* Make SetSelection cleverer about how it decides selection changed

* Refactor TableView key handling/Tab to be simpler and faster

* Tests for TableView selection moving out

* Add test for TableView selection change swallow cursor

* Fix formatting

* Fix split container height when buttons have shadows

* Fix alignment of buttons and input boxes
2024-09-01 14:57:41 -06:00
Tig
4fb7d04dd9 Dim.Fill now takes a Dim, instead of an int 2024-09-01 09:26:42 -06:00
Tig
2f6ea90686 Merge pull request #3711 from tznind/3695-make-accept-also-change-color-picker-values
Fixes #3695 - Add event handlers for Accept in ColorPicker text fields
2024-08-31 17:18:23 -04:00
Tig
27234b7bf9 Fixes #3707 - Wizard focus (#3708)
* Initial commit.

* More fixes

* Fixed AdvanceFocus issue with nested subviews. E.g. Wizard->WizardStep->_contentView->subview

* Fixed DatePicker tests

* Fixed DatePicker tests
2024-08-31 15:17:55 -06:00
tznind
6bcda35384 Add event handlers for Accept to match Leave events 2024-08-31 15:23:33 +01:00
Tig
760455806c RestoreFocus is internal 2024-08-29 15:55:27 -04:00
Tig
f0508b9831 Improving Application.Navigation 2024-08-29 13:53:16 -04:00
Tig
f882cd9f37 Fixed CP unit test 2024-08-29 13:13:45 -04:00
BDisp
9add83fc7d Remove ClearOnVisibleFalse property. 2024-08-28 20:30:46 +01:00
Tig
e8e4305b7b Merge branch 'v2_develop' into v2_2491-Arrangement-Overlapped 2024-08-28 12:14:35 -07:00
Tig
384a59fb23 Debugging DatePickers fail4 2024-08-27 23:08:20 -07:00
Tig
17ecf5f5e4 Debugging DatePickers fail3 2024-08-27 23:02:43 -07:00
Tig
70a44cd951 Debugging DatePickers fail2 2024-08-27 22:57:19 -07:00
Tig
8bdb0f64d7 Revoved defunct api 2024-08-27 20:51:32 -07:00
Tig
18e4010041 Merge branch 'v2_develop' into use-datacolumn-caption 2024-08-27 16:25:43 -07:00
Remo
d7093f3b4a Merge branch 'use-datacolumn-caption' of github.com:Remo/Terminal.Gui into use-datacolumn-caption 2024-08-27 06:39:59 +02:00
Remo
b122744c60 test datacolumn caption handling 2024-08-27 06:39:52 +02:00
Tig
1b1a2524e7 Removed TabIndex etc... 2024-08-26 13:00:59 -07:00
Tig
e9c4e02249 Colorpicker 2024-08-26 07:27:12 -07:00
BDisp
ae3fcef17a Remove host parameter from scroll classes. 2024-08-26 12:47:23 +01:00
BDisp
a343fd0089 Add ScrollButton unit test and code cleanup. 2024-08-26 01:06:06 +01:00
BDisp
d3ab81eb19 Add ScrollBar unit tests and code cleanup. 2024-08-26 00:13:30 +01:00
BDisp
7a1eb9846e Code cleanup. 2024-08-25 21:00:59 +01:00
BDisp
d47188f1f0 Consolidating GetPositionFromSliderLocation and GetSliderLocationDimensionFromPosition methods. 2024-08-25 20:55:09 +01:00
Tig
bdc60c9490 Got all unit tests passing. Some AdvanceFocus stuff still not right. 2024-08-24 07:27:10 -07:00
Tig
90cc922150 Fixed colorpicker 2024-08-23 16:02:20 -06:00
Tig
a22a59ebbd Added more nav tests 2024-08-23 14:57:19 -06:00
Tig
5b8ff59a57 Fixed colorpicker 2024-08-23 14:28:14 -06:00
Tig
667a8ee152 Fixed label tests 2024-08-23 14:09:44 -06:00
Tig
c39318c521 merged 2024-08-23 11:03:05 -06:00
BDisp
ecc44fce91 Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-08-23 16:54:28 +01:00
BDisp
6498610de9 Fixes #3678. ContextMenu accesses disposed MenuBar. (#3681)
* Fixes #3678. ContextMenu accesses disposed MenuBar.

* Preserve always the last menu opened.

* Re-added MenuAllClosed event.

* Ensures call CleanUp if Application.MouseGrabView hold another MenuBar than the calling one.

* Fix unit tests.

* Passing the offending object instead of the View type.

* Add that to the dictionary to shut respeller up.

* Address a few warnings

* A question

* Just a little more cleanup

* Combine these and comment

* Slight additional cleanup

* More minor cleanup

We already know it is null. just make it the else instead of a new condition

* Nullable != true ===> is not true

* Unconditional break at the top is just a part of the while statement (inverted)

* Fixes #3687. ColorPicker isn't respecting the current UI culture.

* Fix @dodexahedron erroneous code.

* Cleanup comments.

---------

Co-authored-by: Brandon Thetford <github@snapsinazfs.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2024-08-23 09:47:09 -06:00
BDisp
c1d82947aa Fixes #3682. CanFocus true for Label works only for keyboard and not mouse. (#3683)
* Fixes #3682. CanFocus true for Label works only for keyboard and not mouse.

* Simplifying code.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2024-08-23 09:46:52 -06:00