Skip to content

Commit d848e1d

Browse files
committed
make add input methods button explicit
1 parent 9a60182 commit d848e1d

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed
-8 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.

src/config/inputmethod.swift

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,6 @@ struct InputMethodConfigView: View {
6060
HStack {
6161
Text(group.name)
6262

63-
Button {
64-
addToGroup = group
65-
addingInputMethod = true
66-
} label: {
67-
Image(systemName: "plus.circle")
68-
}
69-
.buttonStyle(BorderlessButtonStyle())
70-
.foregroundColor(.secondary) // As if it's in section header.
71-
.help(NSLocalizedString("Add input methods to", comment: "") + " '\(group.name)'")
72-
7363
Button {
7464
renameGroupDialog.show { input in
7565
viewModel.renameGroup(group, input)
@@ -78,7 +68,7 @@ struct InputMethodConfigView: View {
7868
Image(systemName: "pencil")
7969
}
8070
.buttonStyle(BorderlessButtonStyle())
81-
.foregroundColor(.secondary)
71+
.foregroundColor(.secondary) // As if it's in section header.
8272
.help(NSLocalizedString("Rename", comment: "") + " '\(group.name)'")
8373
}
8474
// Make right-click available in the whole line.
@@ -89,6 +79,14 @@ struct InputMethodConfigView: View {
8979
viewModel.removeGroup(group.name)
9080
}
9181
}
82+
83+
Button {
84+
addToGroup = group
85+
addingInputMethod = true
86+
} label: {
87+
Text("Add input methods")
88+
}
89+
9290
ForEach($group.inputMethods) { $inputMethod in
9391
HStack {
9492
Text(inputMethod.displayName)
@@ -118,6 +116,7 @@ struct InputMethodConfigView: View {
118116
}
119117
}
120118
}
119+
.frame(minWidth: 168) // Enough to hold "Add input methods".
121120
.contextMenu {
122121
Button(NSLocalizedString("Add group", comment: "")) {
123122
addGroupDialog.show { input in

0 commit comments

Comments
 (0)