socket icon indicating copy to clipboard operation
socket copied to clipboard

Transparent window background (desktop-only)

Open chicoxyzzy opened this issue 1 year ago • 3 comments

  • [x] macOS
  • [ ] Linux
  • [ ] Windows

chicoxyzzy avatar Dec 28 '23 11:12 chicoxyzzy

I'm trying to add this on Windows

    if (opts.transparent) {
      CORE2WEBVIEW_COLOR color = { 0 };
      webview->put_DefaultBackgroundColor(color);
    }

it compiles fine, without errors in the app, but it doesn't work for me

I took example code from here https://github.com/MicrosoftEdge/WebView2Samples/blob/85e53c9dc4245ed74fc737554640644d4b0f3bb5/SampleApps/WebView2APISample/ViewComponent.cpp#L84 and it looks correct acccording to what I see in the webview2 win32 c++ api

chicoxyzzy avatar Dec 29 '23 12:12 chicoxyzzy

TODO: add tests for JS API

chicoxyzzy avatar Jan 03 '24 18:01 chicoxyzzy

Should I rebase the branch? cc @heapwolf @jwerle

chicoxyzzy avatar Apr 16 '24 16:04 chicoxyzzy