Skip to content

Commit 520a9f4

Browse files
committed
fix: fix font weight property assignment
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. 在不同显示场景下测试弹窗外观和文本渲染
1 parent 094fd43 commit 520a9f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qml/windowed/WindowedFrame.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ InputEventItem {
193193
id: folderGridViewPopup
194194
width: 370
195195
height: 330
196-
folderNameFont: LauncherController.adjustFontWeight(DTK.fontManager.t6, Font.BoldFont.Bold)
196+
folderNameFont: LauncherController.adjustFontWeight(DTK.fontManager.t6, Font.Bold)
197197
centerPosition: Qt.point(curPointX, curPointY)
198198

199199
readonly property int animationDuration: 200

0 commit comments

Comments
 (0)