Update the font of the accessory view label in the macOS 26 save panel

提交: cdd0e6f4 | 2025-06-12 21:38:36+00:00

← 返回列表

Update the font of the accessory view label in the macOS 26 save panel

Minor
提交哈希: cdd0e6f4cb272a2e7625c422c2ed2e13ec78356c
提交时间: 2025-06-12 21:38:36+00:00
影响等级: Minor
生成工具: webview2-upstream-sentry
上游审核链接: 查看上游审核 🔗

📋 摘要

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.

🎯 影响分析

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.

受影响的类:

SelectFileDialogBridge CreateAccessoryView (函数)