Skip to content

transparent background #205

Closed
Closed

Description

@olilarkin

Couldn't work out if its currently possible or not, but it would be great to be able to make ICoreWebView2 have a transparent background

AB#27226168

Activity

  1. david-risney commented on May 26, 2020

    @david-risney
    Contributor

    Can you elaborate on your app scenario and how transparency would help? Are you using HWND based hosting in the C++ API?

  2. olilarkin commented on May 27, 2020

    @olilarkin
    Author

    I develop a cross platform audio plugin framework and i am integrating a webview UI widget that is based on WKWebKitView on mac/ios and ICoreWebView2 on windows. For seamlessly mixing web UI content with the native view, on mac and ios i have been liking the fact that i can have a transparent background. I can imagine this also being useful for example to allow HTML to be used for debug UI in game engines or floating desktop helper apps with non-rectangular shapes (Thinking of old winamp skins etc, where you would need transparency)

  3. Ciantic commented on Jul 13, 2020

    @Ciantic

    Without transparent background I can't replicate Electron apps with this. Imagine an overlay program, like presentation helper etc. that overlays on top of desktop.

    Also tooltips, popu menus etc. all require transparent background. How else would you render the tip of the popup menu or the shadows?

    It's easy to do with Electron because you can have transparent background, yet the HTML elements appear like in thin air with it.

    The transparent background simply allows to have non-rectangular looking window etc.

    IMO, this feature is must have, otherwise I have to stick with Electron and it's bloated binaries. I think this project needs some web designers too, not just C++ programmers, they would have told immediately that this is required feature.

  4. AndrewPlakhotnyi commented on Aug 1, 2020

    @AndrewPlakhotnyi

    It also must be click-through. I.e. it must receive input events only if clicked on non-transparent areas.

  5. champnic commented on Mar 3, 2021

    @champnic
    Member

    This should be available through the DefaultBackgroundColor API in 1.0.790-prerelease SDK. We are tracking the mentioned clickthrough work in #1004. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions