From 6d1c6078adc5c6a310c8a79a29a9f5434d14b430 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Sat, 21 Mar 2026 13:39:41 +0800 Subject: [PATCH] style(ui): adjust font and icon size for keyboard layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use DTK font manager instead of hardcoded point size, and adjust delete button icon size to better fit the UI design. 使用DTK字体管理器替代硬编码字体大小,并调整删除按钮图标尺寸以更好地适配UI设计。 Log: 调整键盘布局字体和图标大小 PMS: BUG-353825 Influence: 优化键盘布局界面的字体和图标显示效果,提升用户体验。 --- src/dcc-fcitx5configtool/qml/KeyboardLayout.qml | 10 +++++----- src/dcc-fcitx5configtool/qml/KeyboardLayoutModule.qml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/dcc-fcitx5configtool/qml/KeyboardLayout.qml b/src/dcc-fcitx5configtool/qml/KeyboardLayout.qml index 582cca71..94c73a0f 100644 --- a/src/dcc-fcitx5configtool/qml/KeyboardLayout.qml +++ b/src/dcc-fcitx5configtool/qml/KeyboardLayout.qml @@ -30,7 +30,7 @@ DccObject { Layout.alignment: Qt.AlignRight | Qt.AlignVCenter Layout.rightMargin: 10 text: keyboardLayoutTitle.isEditing ? qsTr("done") : qsTr("edit") - font.pointSize: 12 + font: D.DTK.fontManager.t8 background: null textColor: D.Palette { normal { @@ -100,10 +100,10 @@ DccObject { id: removeButton visible: itemDelegate.isCurrentLang || keyboardLayoutTitle.isEditing icon.name: itemDelegate.isCurrentLang ? "item_checked" : "list_delete" - icon.width: 24 - icon.height: 24 - implicitWidth: 36 - implicitHeight: 36 + icon.width: 16 + icon.height: 16 + implicitWidth: 16 + implicitHeight: 16 anchors { right: itemDelegate.right rightMargin: 10 diff --git a/src/dcc-fcitx5configtool/qml/KeyboardLayoutModule.qml b/src/dcc-fcitx5configtool/qml/KeyboardLayoutModule.qml index f84133e5..d3715b54 100644 --- a/src/dcc-fcitx5configtool/qml/KeyboardLayoutModule.qml +++ b/src/dcc-fcitx5configtool/qml/KeyboardLayoutModule.qml @@ -30,7 +30,7 @@ DccObject { Layout.alignment: Qt.AlignRight | Qt.AlignVCenter Layout.rightMargin: 10 text: keyboardLayoutTitle.isEditing ? qsTr("done") : qsTr("edit") - font.pointSize: 12 + font: D.DTK.fontManager.t8 background: null textColor: D.Palette { normal { @@ -99,10 +99,10 @@ DccObject { id: removeButton visible: itemDelegate.isCurrentLang || keyboardLayoutTitle.isEditing icon.name: itemDelegate.isCurrentLang ? "item_checked" : "list_delete" - icon.width: 24 - icon.height: 24 - implicitWidth: 36 - implicitHeight: 36 + icon.width: 16 + icon.height: 16 + implicitWidth: 16 + implicitHeight: 16 anchors { right: itemDelegate.right rightMargin: 10