Skip to content

Commit 33fc835

Browse files
changed to prof 3
1 parent 11152b7 commit 33fc835

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

specs/Theme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ void ViewComponent::SetTheme(COREWEBVIEW2_THEME_KIND value)
2626
wil::com_ptr<ICoreWebView2Profile> profile;
2727
CHECK_FAILURE(webView7->get_Profile(&profile));
2828

29-
auto profile2 = profile.try_query<ICoreWebView2Profile2>();
30-
if (profile2)
29+
auto profile3 = profile.try_query<ICoreWebView2Profile3>();
30+
if (profile3)
3131
{
32-
profile2->put_Theme(value);
32+
profile3->put_Theme(value);
3333
}
3434
}
3535
}
@@ -61,7 +61,7 @@ void SetTheme(CoreWebView2ThemeKind value)
6161
## C++
6262
```cpp
6363
[uuid(5f817cce-5d36-4cd0-a1d5-aaaf95c8685f), object, pointer_default(unique)]
64-
interface ICoreWebView2Profile2 : ICoreWebView2Profile {
64+
interface ICoreWebView2Profile3 : ICoreWebView2Profile2 {
6565
/// The Theme property sets the overall theme of the WebView2 instance.
6666
/// The input parameter is either COREWEBVIEW2_THEME_KIND_SYSTEM,
6767
/// COREWEBVIEW2_THEME_KIND_LIGHT, or COREWEBVIEW2_THEME_KIND_DARK.
@@ -113,7 +113,7 @@ namespace Microsoft.Web.WebView2.Core
113113
{
114114
// ...
115115
116-
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2Profile2")]
116+
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2Profile3")]
117117
{
118118
[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 };

0 commit comments

Comments
 (0)