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

Support transparency with blurred background. #1354

Open
NevermindNilas opened this issue Apr 4, 2024 · 1 comment
Open

Support transparency with blurred background. #1354

NevermindNilas opened this issue Apr 4, 2024 · 1 comment
Labels

Comments

@NevermindNilas
Copy link

NevermindNilas commented Apr 4, 2024

Specification

  • pywebview version: 5.0.5 ( latest available through pip install )
  • operating system: Windows 11
  • web renderer: Chromium

Description

Basically revisiting this issue without necroposting.
I would love to find out if it is possible to have a blurred background with semi-transparency.

import webview

window = webview.create_window(
    "web/main.html",
    transparent=True,
    vibrancy=True,
    resizable=False,
    width=1366,
    height=768,
)

webview.start()
        body {
            overflow: hidden;
            margin: 0;
            background-color: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }

An example through File Explorer + MICA:
image

if there's no direct way, maybe a similar approach to PythonBlurBehind could work?

Practicalities

  • YES: I am willing to work on this issue myself.
Copy link

github-actions bot commented May 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant