Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ColorPicker (true color) #298

Merged
merged 4 commits into from
Aug 24, 2024
Merged

Add ColorPicker (true color) #298

merged 4 commits into from
Aug 24, 2024

Conversation

tznind
Copy link
Collaborator

@tznind tznind commented Aug 24, 2024

Bump all nuget packages and add designer support for the new true color ColorPicker

  • Make ColorPicker designable
  • Switch TGD attribute designer window (also called ColorPicker 🙄 use new true color)
  • ColorPicker needs tests
  • ColorPicker code gen needs to call ApplyStyleChanges

Incidental changes

  • I have removed all paralellization in tests because the static Application keybindings stuff inconsistently crashes when multithreading
  • I have removed the ViewFactory generic vs non generic comparison test. It is an increasing chore. Basically it said that the two methods should create identical (Equals) objects on all properties. But most of the properties of Views these days are complex and/or don't support equality. The test itself is kinda pointless.

@tznind tznind marked this pull request as ready for review August 24, 2024 13:30
@tznind tznind requested a review from BDisp August 24, 2024 13:34
Copy link
Contributor

@BDisp BDisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only one suggestion.

@@ -6,7 +6,7 @@ namespace UnitTests;
[TestOf( typeof( DimExtensions ) )]
[Category( "Core" )]
[Category( "Terminal.Gui Extensions" )]
[Parallelizable( ParallelScope.Children )]
[NonParallelizable]
Copy link
Contributor

@BDisp BDisp Aug 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead using [NonParallelizable] attribute everywhere, I think it's possible prevent parallel execution via .runsettings:

<RunSettings>
  <NUnit>
    <DefaultTestCaseParallelization>false</DefaultTestCaseParallelization>
  </NUnit>
</RunSettings>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you are right - I think this is the default so I could probably just have deleted the attributes.

@tznind tznind merged commit 99d7d57 into v2 Aug 24, 2024
1 check passed
@tznind tznind deleted the color-picker-hsv-support branch August 24, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants