Skip to content

shell: Add corner-radius to blur effects#32

Closed
ektorthebigbro wants to merge 1 commit intoGNOME:mainfrom
ektorthebigbro:codex/blur-corner-radius
Closed

shell: Add corner-radius to blur effects#32
ektorthebigbro wants to merge 1 commit intoGNOME:mainfrom
ektorthebigbro:codex/blur-corner-radius

Conversation

@ektorthebigbro
Copy link
Copy Markdown

What changed

This adds a corner-radius property to Shell.BlurEffect and applies a rounded mask during the final compositing pass.

The effect can already blur actor and background content, but the blurred output is always composited as a rectangle. With this change, callers can keep the blur aligned with rounded surfaces instead of getting visible square blur corners.

Why

Rounded shell surfaces are common in themes and shell customizations, but the blur pipeline currently has no way to match that geometry. As a result, blurred surfaces can show square edges that extend beyond the rounded actor shape.

Exposing a corner radius on the blur effect keeps the blur output consistent with the surface it belongs to.

Validation

I was able to verify:

  • the patch applies cleanly against main
  • git diff --check passes

I was not able to run a full local build in this environment because this machine currently has GNOME 49-era platform packages installed, while main now targets GNOME Shell 50 and requires a newer gjs (>= 1.87.1).

Add a new corner-radius property to ShellBlurEffect and apply a
rounded mask in the final compositing pass.

This allows blur surfaces to match the rounded geometry of the actor
they are attached to instead of always rendering square blur edges.
@gnomesysadmins
Copy link
Copy Markdown
Contributor

Thank you for contributing to gnome-shell!

gnome-shell uses GitLab for code review. As such we have forwarded
your contribution to the GNOME official GitLab instance:

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9164

GNOME's GitLab instance also supports GitHub as one of the possible
authentication method in case you'd like to follow up on the above
issue. You can login at the following URL:

https://gitlab.gnome.org/users/sign_in

If you are interested in sticking around within the GNOME community we
encourage you to read the following documents:

https://www.gnome.org/get-involved
and
https://wiki.gnome.org/Newcomers

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants