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

Less padding around windows on macOS #2952

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Less padding around windows on macOS #2952

merged 1 commit into from
Dec 23, 2023

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Dec 23, 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?

The Adwaita theme draws a wide shadow around the window. This shadow is part of the view on macOS.

You can see this easily when you open a file. The parent window is overlayed with a "sheet":

image

What is the new behavior?

The shadow has been tweaked to look more like a macOS shadow, and the shadow size is smaller. This improves the usability: the big (invisible) border is gone, so if you click on an underlying window, it will actually work.

image

Also the shadow looks a bit more mac-like:

image

Other information

GTK issue: https://gitlab.gnome.org/GNOME/gtk/-/issues/6255

@github-actions github-actions bot added the python Pull requests that update Python code label Dec 23, 2023
@amolenaar amolenaar changed the title Nicer shadows on macOS Less padding around windows on macOS Dec 23, 2023
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.

Thanks @amolenaar, nice improvement!

@danyeaw danyeaw added chore Maintenance related PR and removed python Pull requests that update Python code labels Dec 23, 2023
@danyeaw danyeaw merged commit 21bd11d into main Dec 23, 2023
20 checks passed
@danyeaw danyeaw deleted the macos-shadow branch December 23, 2023 20:03
@amolenaar
Copy link
Member Author

amolenaar commented Dec 24, 2023

I just did a check on Windows, and it suffers from the same problem. I think we can apply the same styling patch there as well. (click outside the window and see how far the mouse pointer has to be away from the real window before you can actually select a parent window).

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.

None yet

2 participants