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 spec for CoreWebView2ControllerOptions.DefaultBackgroundColor.md for review #4981

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

citlalli-z
Copy link

No description provided.

Update to address feedback from review comments
…rOptions.DefaultBackgroundColor-draft

Add spec for CoreWebView2ControllerOptions.DefaultBackgroundColor.md
@citlalli-z citlalli-z added the API Proposal Review WebView2 API Proposal for review. label Dec 10, 2024
/// By default, this color is set to white.
///
/// Currently this API only supports opaque colors and transparency. It will
/// fail for colors with alpha values that don't equal 0 or 255 ie. translucent
Copy link
Contributor

Choose a reason for hiding this comment

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

"Fail" means throws e_invalidarg from the setter, correct?

/// the `DefaultBackgroundColor` property to render the background.
/// By default, this color is set to white.
///
/// Currently this API only supports opaque colors and transparency. It will
Copy link
Contributor

Choose a reason for hiding this comment

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

"Currently" suggests this is a temporary limitation. If we don't have concrete plans to support semi-transparent colors, consider simplifying this by removing the adverb.

(I presume future support for semi-transparent would mean a new interface with a readonly property indicating support.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Proposal Review WebView2 API Proposal for review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants