Update the font of the accessory view label in the macOS 26 save panel
Minor
Commit Hash:
cdd0e6f4cb272a2e7625c422c2ed2e13ec78356c
Commit Time: 2025-06-12 21:38:36+00:00
Impact Level: Minor
Generated By: webview2-upstream-sentry
Upstream Review:
View Upstream Review 🔗
📋 Summary
This submission modifies the font setting logic for accessory view labels in the file chooser dialog. Specifically, a macOS version check is added in the CreateAccessoryView() function: when macOS version >= 26, systemFontSize is used; otherwise, smallSystemFontSize continues to be used. This is a UI adaptation for newer macOS versions, ensuring that the label font size in the file chooser dialog complies with system UI specifications on macOS 26 and later.
🎯 Impact Analysis
This change has a very limited impact on WebView2Mac. As it is merely an adjustment to the UI font size, it primarily affects the display of the "File Format" label in the file picker dialog and does not alter any core functional logic. The specific impacts include: 1) In macOS 26 and later versions, the label font in the file picker dialog used by WebView2Mac will be slightly larger, providing better readability and consistency with the system UI; 2) It will not affect the behavior of core functionalities such as file selection and saving; 3) It will not impact other components of Remote Cocoa or the web rendering capabilities of WebView2Mac; 4) This is a forward-compatible change and has no effect on existing versions of macOS. Overall, this is a pure UI optimization with no substantive impact on the functionality or performance of WebView2Mac.
Impacted Classes:
SelectFileDialogBridge
CreateAccessoryView (函数)