Commit Graph

734 Commits

Author SHA1 Message Date
BDisp
479ff3dc76 Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-08-23 16:46:42 +01:00
Tig
f7ca649b54 Merge branch 'v2_develop' into v2_2491-Arrangement-Overlapped 2024-08-23 09:22:47 -06:00
Tig
e21f158077 Fixes #3689. Release builds broken (#3690)
* Initial commit

* added #if DEBUG_IDISPOSABLE

* Tweaked yml
2024-08-23 09:22:00 -06:00
Thomas Nind
38f84f7424 Fixes #2800 - Color picker (supporting hsl, hsv and rgb) (#3604)
* Readonly HSL view

* Make it possible to move between bars by moving to subview

* Basically working and with mouse support

* Fix HSL to work properly with double values instead of color matching

* Fix Value on ColorPicker to match HSL values

* Fix color spectrum

* Add Swatch and better sync with text box

* Work on jitter

* ColorPicker HSL working

* More keybindings

* Add ColorModel

* Support both HSL and HSV

* Add RGB

* Better mouse handling

* WIP: AttributeView and integrate into LineDrawing
(does not currently work properly)

* Fix color picking

* Add concept of an ITool

* Add ColorPickerStyle

* Fix selected cell rendering

* Add first test for ColorPicker2

* Add more RGB tests

* Improve ColorPicker2 setup process

* Tests and fixes for keyboard changing value R

* Fix margin on bars when no textfields

* Add mouse test

* Add tests for with text field

* Add more tests and fix bug sync component text field change with hex text field

(WIP - failing tests)

* Fix tests and fix clicking in a bar label area possibly not selecting

* Move AttributeView to LineDrawing and adjust to have a 'transparent pattern' too

* Render triangle in dark gray if background is black

* Add ColorChanged event

* Resharper Cleanup

* Xml comments and public/private adjustments

* Explore replacing diagram test with fragile Subview diving

* Migrate ColorPicker_DefaultBoot to sub asserts

* Port other tests

* Replace ColorPicker with new view

* Fix ColorPicker size to match scenarios size assumptions

* Split to separate files and ignore invalid test for ColorPicker

* Ignore also in mouse version of AllViews_Enter_Leave_Events

* Remove bool _updating from ColorPicker

Now instead we are more selective about what we update when and do so deterministically

* Typo fix

* Fix ReSharper bad renames in comments for "Value"

* Refactor to single implementation of 'prompt for color' logic

- Now called PromptForColor
- Shared by LineDrawing and ProgressBarStyles scenarios

* Sum runes instead of Length

* Hide ColorBar and SetValueWithoutRaisingEvent from public API

* Move ColorEventArgs to Drawing folder

* Move ColorModel to Drawing folder

* First try at Dim.Auto for ColorPicker

* Remove explicit width/height setting in most scenarios

* Remove explicit heights

* Fixed build/test issues.
Illustrated test best practice.

* WIP: Start working on test changes and add new options to ColorPickers scenario (Color Model and show textfields).

* Fix for R indicator arrow sometimes 'falling off' the drawn area.

* Add nullable enable

* Test fixes and refactor for avoiding Begin

* Make ColorEventArgs inherit from EventArgs<Color>

* Fix Dispose not being called on bars when switching color models

* Remove 'oldColor' from test now it is not supported

* Add initial stab at ColorPickerStyle.ShowName

* Use AppendAutocomplete for color names

* Implemented resoruce based colorname resolver

* Update GetTextField to support getting the color names field
Change style setting to ShowColorName

* Color name updates when navigating away from the named color

* Restore old color picker as ColorPicker16

* Add test that shows 'Save as' is currently considered a named color ><

* Fix GetW3CColorNames

* Removed dupe colors

* Revert to old color pickers

* Nullability question marks for everyone!

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2024-08-22 17:53:04 -06:00
BDisp
81888222ea Ensures slider to have a length proportional to the bar size. 2024-08-21 22:07:25 +01:00
BDisp
6add7a1438 Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-08-21 21:18:16 +01:00
Tig
f65f26f846 Fighting with Menubar/contextMenu which are effing hacks. 2024-08-20 17:35:45 -06:00
Tig
f4a9eb6f1a TableView tests 2024-08-20 13:59:18 -06:00
Tig
3360c5ba89 Moved Window Test. Application.Begin behvior 2024-08-20 13:47:23 -06:00
Tig
ae8e8e72da DatePicker 2024-08-20 13:26:47 -06:00
Tig
c4404df312 DateField 2024-08-20 13:26:25 -06:00
Tig
d1d7ab5fa8 Done with refactor. Nav unit tests all pass. Fixing View unit tests... 2024-08-20 13:11:55 -06:00
Tig
794ad0bad7 Refactoring again... WIP broke 2024-08-19 19:30:16 -06:00
Tig
755c0afe7f Fixed Combobox 2024-08-19 12:46:40 -06:00
Tig
0d6ad5b112 Fixed treeviewTests 2024-08-19 12:07:10 -06:00
Tig
29f3550489 merged 2024-08-19 10:12:52 -06:00
Tig
b267e1698e V2 fix warnings (#3671)
* Fixed NumericUpDown warning

* Fixed Aot Warning

* Fixed warnings in Application.cs

* Fixed more NumericUpDown warning

* Fixed CommandImpl warning

* Fixed Thickness warnings

* Fixed Label warning

* Fixed warning

* Fixed menubar test warning

* Fixed warnings

* Fixed warnings

* Removed dead code

* Fixed warnings
2024-08-19 10:09:15 -06:00
BDisp
ffa08b82a1 Merge branch 'v2_develop' into v2_2489_scroll-scrollbar-new 2024-08-19 16:28:03 +01:00
BDisp
a0c03b11b6 Fixes #3635. Focus gets confused with ContextMenu. (#3663)
* Fixes #3635. Focus gets confused with ContextMenu.

* Improving unit test.

* Updated migration doc to include additional findings. (#3660)

* Updated migration doc to include additional findings.

* Updated per PR recommendations.

---------

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

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
Co-authored-by: Brian Gentry <bgentry@trestledevelopment.com>
2024-08-19 09:14:00 -06:00
Tig
7a2d43c293 Fixed Views unit tests 2024-08-18 17:45:30 -06:00
Tig
ef7f88d3b4 OnEnter/Leave -> OnHasFocusChanging/OnHasFocusChanged 2024-08-18 16:58:26 -06:00
Tig
a03e30537c reordered params for consistency 2024-08-18 16:00:35 -06:00
Tig
591baa65f0 GetFocused() -> back to Focused property (get only; computed). 2024-08-18 15:45:26 -06:00
BDisp
936f9f52e0 Merge branch 'v2_develop' into v2_3667_toplevel-menubar-statusbar-remove-fix 2024-08-18 16:10:46 +01:00
BDisp
9635a434ed Fixes #3667. Null reference in v2 in FindDeepestView. 2024-08-18 15:56:34 +01:00
Tig
71ae28bc90 Fixed unit tests 2024-08-18 08:48:45 -06:00
Tig
49c10e02c8 Merge branch 'v2_develop' into v2_2491-Arrangement-Overlapped 2024-08-17 09:23:33 -06:00
Tig
c00290ffcc Added unit test & fixed bug (#3666) 2024-08-17 09:22:52 -06:00
Tig
2375ee35a9 WIP 2024-08-17 08:49:24 -06:00
BDisp
9b896573ec Fix scroll slider when moving mouse outside the host. 2024-08-16 23:57:15 +01:00
BDisp
b025beb32f Rename id to scrollSlider to avoid conflict with the Slider view. 2024-08-16 16:27:54 +01:00
Tig
42a9ecb151 Fixed unit tests 2024-08-15 06:38:07 -06:00
Tig
782b090643 builds and runs. But not properly. 2024-08-14 17:45:21 -06:00
BDisp
4a68fc0ffb Resolving merge conflicts. 2024-08-14 14:24:03 +01:00
Tig
a4d1990e2a Merge branch 'v2_develop' into v2_2491-Arrangement-Overlapped 2024-08-13 15:59:06 -06:00
BDisp
a661fcecf7 Fixes #3652. Setting Menus causes unexpected Exception. (#3653)
* Moving ShortcutDelimiter from MenuBar to Key.

* Rename to ShortcutKey and change type to Key.

* Improving add and remove menu items dynamically.

* Code cleanup.

* Fix status bar shortcuts issues.

* Fix build error.

* Change HotKey type to Key.

* Change HotKey.setter to private.

* Fix warnings.

* Fix some bugs.

* Rename ShortcutDelimiter to Separator.

* Add Separator property into the Configuration Manager.

* Change XML doc for Separator.

* Replace KeyEvent with Key.

* Add unit test preventing the Key.Separator is never Null ('\0).
2024-08-13 13:46:00 -06:00
BDisp
63e75b7413 Fixes #3109. AOT support with .Net 8. (#3638)
* Add a native AOT project.

* Fixes Text.Json to work with native AOT.

* Fix silent errors on unit tests when testing the Red color which has a length of 3.

* Allowing test custom configuration without the config.json file match the unit tests configurations.

* Fix unit test if tested alone.

* Add native project into solution.

* Fix merge errors.

* Setting ConfigurationManager.ThrowOnJsonErrors as true to throw any serialization issue when published file runs.

* Remove unnecessary using's.

* Added unit test to ensure all serialization is properly configured.

* Fix warnings.

* Remove ThrowOnJsonErrors.

* Fix warnings.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2024-08-06 12:05:36 -06:00
Tig
9825cb6079 Merge branch 'v2_develop' into v2_release 2024-08-06 08:50:08 -06:00
Tig
0bd50c5b93 Fixes #3641. CheckBox.State -> CheckBox.CheckState (#3648)
* State->CheckState.
Toggled->CheckStateChanging.

* Code cleanup & doc fix

* Updated migration guide

* Updated migration guide
2024-08-06 08:39:55 -06:00
Tig
12df9beebe Fixed linux/mac test failure 2024-08-05 18:03:08 -06:00
Tig
c0fc83bd78 Added Scenario and expanded API 2024-08-05 17:44:48 -06:00
Tig
126120b6dc Merged.
Feature complete
2024-08-05 12:36:13 -06:00
Tig
7ed969f1aa Fix typos 2024-08-05 09:40:07 -06:00
Tig
9865f72801 Merged with v2_develop.
Code cleanup
2024-08-05 09:14:33 -06:00
Tig
cebf1773af Added other types 2024-08-04 17:10:00 -06:00
Tig
f5b1984db7 Made unit tests more resiliant to config changes 2024-08-04 15:08:18 -06:00
Tig
9526b4eabd Found and fixed another Shortcut bug 2024-08-03 21:59:28 -06:00
Tig
18ac4abab4 simplified test 2024-08-03 21:49:27 -06:00
Tig
87726454c9 Fixed KeyBinding issue @bdisp found 2024-08-03 17:16:06 -06:00
Tig
79e50b4d8f Nuked AlternateFwd/BkKeys.
Added Next/PrevTabGroupKey.
Fixed tests.
2024-08-02 13:41:53 -06:00