Skip to content

Conversation

@MovGP0
Copy link
Contributor

@MovGP0 MovGP0 commented Oct 11, 2025

  • Implemented conversion methods for colors given as int to System.Windows.Media.Color
  • Added unit tests for the conversion methods and for showcasing schema generation.

Notes:

  • System.Windows.Media.Color is not available when targeting Non-WPF (WinForms, MAUI, MacOS, Linux, etc.) plattforms. E.g. the following is not supported:
    • MAUI (Microsoft.Maui.Graphics.Color)
    • WinForms (System.Drawing.Color)
    • Splat (Splat.SplatColor)
  • The current methods do not easily support the scenario that the user wants to pick secondary/tertiary/error/panel colors manually. We may want to implement custom factories for this purpose.
  • I've added a dependency to Shouldly to implement multi-asserts properly

@MovGP0
Copy link
Contributor Author

MovGP0 commented Oct 13, 2025

ℹ️ The follwoing changes where ammended:

  • Added a factory method for creating dynamic color schemes with colors that can be overriden by the user

</PropertyGroup>

<!-- WPF may not be available when we want to target non-windows platforms in future -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net8.0-windows'">
Copy link
Member

Choose a reason for hiding this comment

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

I think for now it is safe to assume that this is just targeting WPF. to actually pull it out, would mean also conditioning the <UseWpf> above.

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