From 520a9f40dbd382f06a84a9f7146791d99a5bd830 Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Fri, 6 Mar 2026 15:17:47 +0800 Subject: [PATCH] fix: fix font weight property assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Changed Font.BoldFont.Bold to Font.Bold in folderNameFont property assignment 2. This fixes a QML warning about incorrect property access 3. The original code was trying to access a non-existent property chain 4. Font.Bold is the correct way to specify bold font weight in Qt/QML Influence: 1. Verify that folder grid view popup displays with correct bold font styling 2. Check for any remaining QML warnings related to font properties 3. Test popup appearance and text rendering in different display scenarios fix: 修复字体粗细属性赋值 1. 将 folderNameFont 属性赋值中的 Font.BoldFont.Bold 改为 Font.Bold 2. 修复了关于错误属性访问的 QML 警告 3. 原始代码尝试访问不存在的属性链 4. Font.Bold 是在 Qt/QML 中指定粗体字重的正确方式 Influence: 1. 验证文件夹网格视图弹窗是否以正确的粗体字体样式显示 2. 检查是否还有与字体属性相关的 QML 警告 3. 在不同显示场景下测试弹窗外观和文本渲染 --- qml/windowed/WindowedFrame.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/windowed/WindowedFrame.qml b/qml/windowed/WindowedFrame.qml index 1d2759a6..fc763c32 100644 --- a/qml/windowed/WindowedFrame.qml +++ b/qml/windowed/WindowedFrame.qml @@ -193,7 +193,7 @@ InputEventItem { id: folderGridViewPopup width: 370 height: 330 - folderNameFont: LauncherController.adjustFontWeight(DTK.fontManager.t6, Font.BoldFont.Bold) + folderNameFont: LauncherController.adjustFontWeight(DTK.fontManager.t6, Font.Bold) centerPosition: Qt.point(curPointX, curPointY) readonly property int animationDuration: 200