@@ -60,16 +60,6 @@ struct InputMethodConfigView: View {
60
60
HStack {
61
61
Text ( group. name)
62
62
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
-
73
63
Button {
74
64
renameGroupDialog. show { input in
75
65
viewModel. renameGroup ( group, input)
@@ -78,7 +68,7 @@ struct InputMethodConfigView: View {
78
68
Image ( systemName: " pencil " )
79
69
}
80
70
. buttonStyle ( BorderlessButtonStyle ( ) )
81
- . foregroundColor ( . secondary)
71
+ . foregroundColor ( . secondary) // As if it's in section header.
82
72
. help ( NSLocalizedString ( " Rename " , comment: " " ) + " ' \( group. name) ' " )
83
73
}
84
74
// Make right-click available in the whole line.
@@ -89,6 +79,14 @@ struct InputMethodConfigView: View {
89
79
viewModel. removeGroup ( group. name)
90
80
}
91
81
}
82
+
83
+ Button {
84
+ addToGroup = group
85
+ addingInputMethod = true
86
+ } label: {
87
+ Text ( " Add input methods " )
88
+ }
89
+
92
90
ForEach ( $group. inputMethods) { $inputMethod in
93
91
HStack {
94
92
Text ( inputMethod. displayName)
@@ -118,6 +116,7 @@ struct InputMethodConfigView: View {
118
116
}
119
117
}
120
118
}
119
+ . frame ( minWidth: 168 ) // Enough to hold "Add input methods".
121
120
. contextMenu {
122
121
Button ( NSLocalizedString ( " Add group " , comment: " " ) ) {
123
122
addGroupDialog. show { input in
0 commit comments