Commit Graph

7897 Commits

Author SHA1 Message Date
Tig
fd31f49660 ip 2025-04-04 18:11:09 -06:00
Tig
9c53486f03 Fixed OoptionSelector 2025-04-04 18:03:51 -06:00
Tig
9a2a7a4685 Fixed a bunch of CM issues 2025-04-04 09:50:12 -06:00
Tig
57fc30804d Tweaks 2025-04-03 16:41:25 -06:00
Tig
869c02a112 Fixed Region bug preventing menus without borders from working 2025-04-03 15:46:50 -06:00
Tig
60183fabc9 Hacky-ish fixes to:
- #4016
- #4014
2025-04-03 15:08:42 -06:00
Tig
cf9c0d0168 Merged from laptop2 2025-04-03 10:34:59 -06:00
Tig
dba8049125 Merged from laptop 2025-04-03 10:33:43 -06:00
Tig
59863019ab Playing with Fluent 2025-04-03 10:28:51 -06:00
Tig
52f487da41 WIP: ColorScheme tweaks 2025-04-03 10:12:32 -06:00
Tig
01b526691a ColorScheme tweaks 2025-04-03 06:09:46 -06:00
Tig
5a26e60943 Playing with Fluent 2025-04-02 16:20:32 -06:00
Tig
366cd8985c general messing around 2025-04-02 14:54:42 -06:00
Tig
ba7fb2181e general messing around 2025-04-02 14:05:10 -06:00
Tig
a3e823dfbb fixed unit tests 2025-04-02 10:22:08 -06:00
Tig
5805515f0d Tweaks.
Added View.GetSubMenus<type>().
2025-04-02 10:13:58 -06:00
Tig
c761249026 marked v1 menu stuff as obsolte 2025-04-02 09:10:19 -06:00
Tig
ca1160910a Fixed UICatalog bugs. Added fluent tests. 2025-04-02 09:04:02 -06:00
Tig
0795dd1fb8 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-04-02 08:26:09 -06:00
Tig
9560cf3705 Merge branch 'gui-cs:v2_develop' into v2_develop 2025-04-02 08:25:55 -06:00
Tig
7ba9e539ed Partially Fixes #2975 - Upgrades UICatalog to Menuv2 (#4011) 2025-04-02 06:27:24 -06:00
Tig
1c39896925 Merge branch 'gui-cs:v2_develop' into v2_develop 2025-03-31 19:51:26 -06:00
Tig
4cc44091f2 Partially Fixes #2975 - Replaces old ContextMenu with new Bar/Shortcut based implementation (#4008)
* touching publish.yml

* Nuked ContextMenuv2 - use PopverMenu instead

* WIP context menu stuff

* More robust dispose

* Removed ConextMenu; use PopoverMenu instead

* Code cleanup

* Code cleanup2
2025-03-31 17:12:55 -06:00
Tig
ae79c48157 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-03-30 10:21:14 -06:00
Tig
3b0311d743 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-03-29 11:31:30 -06:00
Tig
4048436f49 Merge branch 'gui-cs:v2_develop' into v2_develop 2025-03-29 11:31:22 -06:00
Tig
39d4c7dd3d Fixes #3691 - Adds ViewArrangement.Popover (#3852)
* Added Applicaton.Popover.
Refactored FindDeepestView

* Popover prototype

* Testing highlight

* Fixed click outside issue

* Fixed DialogTests

* Fixed click outside issue (agbain)

* Enabled mouse wheel in Bar

* Enabled mouse wheel in Bar

* Progress. Broke arrangement

* Added popover tests.
Fixed a bunch more CM issues related ot unreliable unit tests.
Updated config.json to include Glyphs.

* Can't set ForceDriver to empty in Resources/config.json.

* added BUGBUG

* Made Position/ScreenPosition clear

* Added View.IsInHierarchy tests

* Added Contextmenuv2 scenario.

* Implemented CM2 in TextView

* Removed unneeded CM stuff from testhelpers

* Shortcut API docs

* Fixed keybinding unit tests

* Fixed mouse handling

* Fighting with CM related unit test failures

* Unit tests pass. I think.

* Shortcut code cleanup

* TextView uses new CM2

* Starting on OnSelect etc...

* Starting on OnSelect etc...

* Fixed ContextMenuv2

* ContextMenu is working again.

* Ugh. ANd fixed button api docs

* Fixed DrawHorizontalShadowTransparent (vertical was already fixed).

* Made Scenarios compatible with #nullable enable

* Undid some keybinding stuff

* Fixed stuff

* Sped up unit tests

* Sped up unit tests 2

* Sped up unit tests 3

* Messing with menus

* merged latest v2_develop

* Added more Popover unit tests

* Added more Popover unit tests2

* Fixed positioning bug

* Fixed mouse bug

* Fixed Bar draw issue

* WIP

* merge v2_develop

* CM2 sorta works

* Enabled Bar subclasses to have IDesignable

* Added ViewportSettings.Transparent

* Region -> nullable enable

* Added ViewportSettigs Editor

* merged v2_develop part 2

* merged v2_develop part 3

* WIP: GetViewsUnderMouse

* WIP: More GetViewsUnderMouse work

* Bars works again

* Added unit tests

* CM now works

* MenuItemv2 POC

* SubMenu POC

* CommandNotBound

* More POC

* Optimize Margin to not defer draw if there's no shadow

* Logger cleanup

* Reverted Generic

* Cascading mostly working

* fixed layout bug

* API docs

* API docs

* Fixed cascade

* Events basically work

* code cleanup

* Fixed IsDefault bug;

* Enabled hotkey support

* Made context-menu-like

* Improved usability

* Refactored ApplicationPopover again

* Cleanup

* Menuv2 POC basically complete

* Code Cleanup

* Made menu API simpler

* Fixed Strings bugs

* Got old ContextMenu scenario mostly working

* ContextMenu scenario now works

* ContextMenu fixes

* ContextMenu fixes

* Tons of menu cleanup

* ContextMenu works in TextView

* Fixed unit tes

* Added unit tests

* Fixed tests

* code cleanup

* More code cleanup

* Deep dive

* scenario

* typos

* Demo colorpicker in a Menu

* Added Region tests proving Region is broken in some Union cases

* fixed v2win/net
2025-03-29 11:30:52 -06:00
Tonttu
1856262b50 Fixes #4000. Named colors as enums. (#4005)
* Add W3C color enum with the RGB as numeric value

* Add transform helper class for W3cColor enum

For the sake of backwards compatibility prioritize parsing 16 color mode color names over the W3C colors because the previous resource-based color names/values had a mix of W3C and 16 color mode RGB values.

Mechanism for choosing/prioritizing one color scheme over the other is currently only available at higher application/driver/output level.

* IColorNameResolver enable null analysis

* Remove obsolete color name related ResourceManagerTests

* Replace remains of W3CColors with direct W3C color name resolver

Temporarily breaks backwards compatibility and tests even further.

* Add ANSI 4-bit (ColorName16) color name resolver

* Add multi-standard color name resolver

Combined resolver for both ANSI 4-bit (ColorName16) and W3C colors while trying to maintain backwards compatibility for ColorPicker.

* Split conditional name resolver test cases

* Change W3C colors tests to be similar to name resolvers

* Change W3cColorsTests to W3cColorNameResolverTests

More consistent when all the tests refer to the color name resolver layer.

* Make W3cColors internal

Color name resolver is the public interface.

* W3cColors: Use Color.Argb instead of individual RGB components

* MultiStandardColorNameResolver: Substitute instead of blocking alternative W3C names

Changes color picker behavior a bit, e.g. Aqua will match to Cyan instead of jumping to Aquamarine.

* Remove leftover color string resources

* Consistent position for IColorNameResolver #nullable enable directive

* Add missing XML comments to ColorScheme.Colors.cs
2025-03-29 11:18:10 -06:00
Tig
df0fcd3d40 touching publish.yml 2025-03-21 09:24:31 +01:00
Tig
320384e5be Merge branch 'v2_release' into v2_develop 2025-03-21 09:20:45 +01:00
Tig
a64b4bc405 touching publish.yml 2025-03-21 09:17:49 +01:00
Tig
b0f050fb74 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-03-21 08:22:01 +01:00
tznind
09a3a48a2b Update class diagram 2.0.0-prealpha.1835 2025-03-21 08:18:46 +01:00
tznind
4634b35c1b Disable GenerateTestCasesForKeyPresses by default 2025-03-21 08:18:46 +01:00
tznind
15bcf0f451 Revert build props changes 2025-03-21 08:18:46 +01:00
tznind
266f03daef Xmldoc 2025-03-21 08:18:46 +01:00
tznind
bacac70588 Make all tests do both drivers 2025-03-21 08:18:46 +01:00
tznind
a9a9b5bb70 Add net ansi sequences 2025-03-21 08:18:46 +01:00
tznind
7712bc64b1 Work on ability to test both v2net and v2win 2025-03-21 08:18:46 +01:00
tznind
56d3835c37 Cleanup code 2025-03-21 08:18:46 +01:00
tznind
29355c8b63 Add automation test for selecting a submenu item 2025-03-21 08:18:46 +01:00
tznind
e94b8b1bdc Add before and after screenshots 2025-03-21 08:18:46 +01:00
tznind
407c863cb9 Add support for outputting logs from tests #3972 2025-03-21 08:18:46 +01:00
tznind
8c009de9a0 Fix test Same to Equal 2025-03-21 08:18:46 +01:00
tznind
1e40ad3bc9 Add csproj to sln 2025-03-21 08:18:46 +01:00
tznind
0b56a3d63b Remove dependency on fluent assertions and fix folder paths 2025-03-21 08:18:46 +01:00
tznind
79f289ce8f Rename to TerminalGuiFluentTesting 2025-03-21 08:18:46 +01:00
tznind
491140a39a Add timeout to tests and fix race condition to boot 2025-03-21 08:18:46 +01:00
tznind
fd465c3367 Make colon implicit in title 2025-03-21 08:18:46 +01:00
tznind
8d610a0dde Add screenshot method 2025-03-21 08:18:46 +01:00