Skip to content

Commit 8ce49c2

Browse files
added doc string, whitespace fixes
1 parent e5411f9 commit 8ce49c2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

specs/Theme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ void ViewComponent::SetTheme(COREWEBVIEW2_THEME_KIND value)
2323

2424
if (webView7)
2525
{
26-
wil::com_ptr<ICoreWebView2Profile> profile;
27-
CHECK_FAILURE(webView7->get_Profile(&profile));
28-
29-
auto profile2 = profile.try_query<ICoreWebView2Profile2>();
30-
if (profile2)
31-
{
32-
profile2->put_Theme(value);
33-
}
26+
wil::com_ptr<ICoreWebView2Profile> profile;
27+
CHECK_FAILURE(webView7->get_Profile(&profile));
28+
29+
auto profile2 = profile.try_query<ICoreWebView2Profile2>();
30+
if (profile2)
31+
{
32+
profile2->put_Theme(value);
33+
}
3434
}
3535
}
3636
```
@@ -115,7 +115,7 @@ namespace Microsoft.Web.WebView2.Core
115115
116116
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2Profile2")]
117117
{
118-
[doc_string("The Theme property sets the overall theme of the WebView2 instance.")]
118+
[doc_string("The Theme property sets the overall theme of the WebView2 instance. The input parameter is either CoreWebView2ThemeKind.System, CoreWebView2ThemeKind.Light, or CoreWebView2ThemeKind.Dark. Note that this API applies theme to WebView2 pages, dialogs, and menus by setting the media feature `prefers-color-scheme` for websites to respond to.")]
119119
CoreWebView2ThemeKind Theme { get; set };
120120
}
121121
}

0 commit comments

Comments
 (0)