Skip to content

Apply custom window shadow to macOS and Windows #2955

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

Merged
merged 1 commit into from
Dec 25, 2023
Merged

Apply custom window shadow to macOS and Windows #2955

merged 1 commit into from
Dec 25, 2023

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Dec 24, 2023

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

As discussed in #2952, the shadow for macOS is very wide, and the shadow is drawn as part of the NSView, hence mouse clicks are consumed.

The same issue appears on Windows.

Issue Number: N/A

What is the new behavior?

Update the window shadow style for both macOS and Windows.

The shadow style is now resembling the default shadow style in GTK.

I found that CssProvider.load_from_path() does not cascade, so only the shadow styling was loaded. This has been fixed.

@github-actions github-actions bot added the python Pull requests that update Python code label Dec 24, 2023
@amolenaar amolenaar requested a review from danyeaw December 24, 2023 17:51
@amolenaar amolenaar marked this pull request as draft December 24, 2023 22:01
Also the window shadow style now resembles the default
shadow style in GTK.
@amolenaar amolenaar marked this pull request as ready for review December 25, 2023 13:48
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@danyeaw danyeaw added chore Maintenance related PR and removed python Pull requests that update Python code labels Dec 25, 2023
@danyeaw danyeaw merged commit d775258 into main Dec 25, 2023
@danyeaw danyeaw deleted the shadow branch December 25, 2023 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants