Friday, June 28, 2024

Rounded Quick Look Corners

Robin Allen (via Hacker News):

For whatever reason, QuickLook will now remove the corners of your images before showing them to you.

It doesn’t matter if they’re photos, game assets, or UI elements you’re designing. Everything will be rounded off before you see it.

[…]

We can click through these views and get info about them, including their addresses so we can mess with them in the debugger. And we can see straight away that the frontmost view, which Xcode tells us is a QLBorderView, is a border with rounded corners!

[…]

We now have all the building blocks we need to make a nice script that attaches to all running QuickLook processes and patches them.

-[NSObject fp_shortMethodDescription] was new to me. QuickTime Player has also hidden the corners for for a long time. I think it also used to hide part of a paused video with the player controls, but now it hides those when you move the cursor out of the window.

2 Comments RSS · Twitter · Mastodon


These are copies of the UIKit methods with a similar name. On iOS they are implemented in UIKit, but in macOS, for whatever reason, they are implemented in FileProvider.

These are:

fp_methodDescription
fp_shortMethodDescription
fp_ivarDescription


When I deal with fixing up images I can't see if there is anything to cleanup in the corners due to the rounding masking that out. I have also found if there is a control option in the corner I can use it because it is also masked out. For example in Finder when using column most there are || symbols at the bottom of the vertical scroll column with || that enable you to expand/contract the column so you can see the full filenames. If the || is on the far right the rounded corner will mask it out so you can't expand that column.

If Apple wants rounded corner the restrict the rounding to the top of the App window and leave the space below with the squared corners. I just want the area that is important for me to see unobstructed and unmasked out so I can do my work. I do not want my descktop Mac to be a desktop iPhone.

Leave a Comment