Skip to content

Add Color.WithFullAlpha() extension#75

Merged
Tyrrrz merged 2 commits intoprimefrom
color-with-full-alpha
Apr 19, 2026
Merged

Add Color.WithFullAlpha() extension#75
Tyrrrz merged 2 commits intoprimefrom
color-with-full-alpha

Conversation

@Tyrrrz
Copy link
Copy Markdown
Owner

@Tyrrrz Tyrrrz commented Apr 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 19, 2026 16:42
@Tyrrrz Tyrrrz added the enhancement New feature or request label Apr 19, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.01%. Comparing base (6726493) to head (d8d7466).
⚠️ Report is 1 commits behind head on prime.

Additional details and impacted files
@@            Coverage Diff             @@
##            prime      #75      +/-   ##
==========================================
+ Coverage   93.99%   94.01%   +0.01%     
==========================================
  Files         132      132              
  Lines        2616     2622       +6     
  Branches      205      205              
==========================================
+ Hits         2459     2465       +6     
  Misses        113      113              
  Partials       44       44              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a convenience extension for System.Drawing.Color to quickly force a color to be fully opaque, aligning with the existing ColorExtensions helper set.

Changes:

  • Add Color.WithFullAlpha() extension that sets alpha to 255 via existing WithAlpha(...).
  • Add unit test coverage for WithFullAlpha().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
PowerKit/Extensions/ColorExtensions.cs Introduces WithFullAlpha() alongside existing color helpers.
PowerKit.Tests/Extensions/ColorExtensionsTests.cs Adds a new test validating WithFullAlpha() preserves RGB and sets alpha to 255.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread PowerKit/Extensions/ColorExtensions.cs Outdated
Comment thread PowerKit.Tests/Extensions/ColorExtensionsTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants