Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 44c492f1d829efd1c77d372b0093b4b2c1055cee
https://github.com/WebKit/WebKit/commit/44c492f1d829efd1c77d372b0093b4b2c1055cee
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M Source/WebKit/UIProcess/PDF/WKPDFHUDView.mm
Log Message:
-----------
Preview icon is smaller than other icons in PDF HUD
https://bugs.webkit.org/show_bug.cgi?id=300352
rdar://162149534
Reviewed by Aditya Keerthi.
The new Liquid Glass Preview icon appears smaller than other icons in
the PDF HUD, particularly compared to the Download icon. This is due to
some inconsistent SF symbol sizing for rounded icons vs app symbols. As
a workaround, calculate the maximum size across all icons and pin each
icon to that size.
Additionally, we use Core Text to determine the proper point size and
weight for the symbol configuration instead of relying on text style
alone. We do this because roundtripping through NSImageRepresentation
solely for scaling up by the device scale factor introduces some
unwanted warping on rounded symbols.
This change can be removed once rdar://160812053 is resolved and symbol
images with the same configuration are properly aligned.
* Source/WebKit/UIProcess/PDF/WKPDFHUDView.mm:
(-[WKPDFHUDView _loadIconImages]):
(-[WKPDFHUDView _pinIconImagesToSize:]):
(-[WKPDFHUDView _imageForControlName:]):
Canonical link: https://commits.webkit.org/301184@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes