Skip to content

Commit 6d1c607

Browse files
committed
style(ui): adjust font and icon size for keyboard layout
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: 优化键盘布局界面的字体和图标显示效果,提升用户体验。
1 parent 958cea7 commit 6d1c607

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/dcc-fcitx5configtool/qml/KeyboardLayout.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DccObject {
3030
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
3131
Layout.rightMargin: 10
3232
text: keyboardLayoutTitle.isEditing ? qsTr("done") : qsTr("edit")
33-
font.pointSize: 12
33+
font: D.DTK.fontManager.t8
3434
background: null
3535
textColor: D.Palette {
3636
normal {
@@ -100,10 +100,10 @@ DccObject {
100100
id: removeButton
101101
visible: itemDelegate.isCurrentLang || keyboardLayoutTitle.isEditing
102102
icon.name: itemDelegate.isCurrentLang ? "item_checked" : "list_delete"
103-
icon.width: 24
104-
icon.height: 24
105-
implicitWidth: 36
106-
implicitHeight: 36
103+
icon.width: 16
104+
icon.height: 16
105+
implicitWidth: 16
106+
implicitHeight: 16
107107
anchors {
108108
right: itemDelegate.right
109109
rightMargin: 10

src/dcc-fcitx5configtool/qml/KeyboardLayoutModule.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DccObject {
3030
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
3131
Layout.rightMargin: 10
3232
text: keyboardLayoutTitle.isEditing ? qsTr("done") : qsTr("edit")
33-
font.pointSize: 12
33+
font: D.DTK.fontManager.t8
3434
background: null
3535
textColor: D.Palette {
3636
normal {
@@ -99,10 +99,10 @@ DccObject {
9999
id: removeButton
100100
visible: itemDelegate.isCurrentLang || keyboardLayoutTitle.isEditing
101101
icon.name: itemDelegate.isCurrentLang ? "item_checked" : "list_delete"
102-
icon.width: 24
103-
icon.height: 24
104-
implicitWidth: 36
105-
implicitHeight: 36
102+
icon.width: 16
103+
icon.height: 16
104+
implicitWidth: 16
105+
implicitHeight: 16
106106
anchors {
107107
right: itemDelegate.right
108108
rightMargin: 10

0 commit comments

Comments
 (0)