Skip to content

Commit 7ec11d2

Browse files
authored
Capitalize labels in the native file menu (#7639)
1 parent 30000a1 commit 7ec11d2

File tree

6 files changed

+112
-119
lines changed

6 files changed

+112
-119
lines changed

src/menu/designRole.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const modelingDesignRole = (
99
label: 'Design',
1010
submenu: [
1111
{
12-
label: 'Start sketch',
12+
label: 'Start Sketch',
1313
id: 'Design.Start sketch',
1414
click: () => {
1515
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -19,7 +19,7 @@ export const modelingDesignRole = (
1919
},
2020
{ type: 'separator' },
2121
{
22-
label: 'Create an offset plane',
22+
label: 'Create an Offset Plane',
2323
id: 'Design.Create an offset plane',
2424
click: () => {
2525
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -28,7 +28,7 @@ export const modelingDesignRole = (
2828
},
2929
},
3030
{
31-
label: 'Create a helix',
31+
label: 'Create a Helix',
3232
id: 'Design.Create a helix',
3333
click: () => {
3434
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -37,7 +37,7 @@ export const modelingDesignRole = (
3737
},
3838
},
3939
{
40-
label: 'Create a parameter',
40+
label: 'Create a Parameter',
4141
id: 'Design.Create a parameter',
4242
click: () => {
4343
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -47,7 +47,7 @@ export const modelingDesignRole = (
4747
},
4848
{ type: 'separator' },
4949
{
50-
label: 'Create an additive feature',
50+
label: 'Create an Additive Feature',
5151
id: 'Design.Create an additive feature',
5252
submenu: [
5353
{
@@ -89,7 +89,7 @@ export const modelingDesignRole = (
8989
],
9090
},
9191
{
92-
label: 'Apply modification feature',
92+
label: 'Apply Modification Feature',
9393
id: 'Design.Apply modification feature',
9494
submenu: [
9595
{
@@ -123,7 +123,7 @@ export const modelingDesignRole = (
123123
},
124124
{ type: 'separator' },
125125
{
126-
label: 'Insert from project file',
126+
label: 'Insert from Project File',
127127
id: 'Design.Insert from project file',
128128
click: () => {
129129
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {

src/menu/editRole.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const projectEditRole = (
3030
label: 'Edit',
3131
submenu: [
3232
{
33-
label: 'Rename project',
33+
label: 'Rename Project',
3434
id: 'Edit.Rename project',
3535
click: () => {
3636
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -39,7 +39,7 @@ export const projectEditRole = (
3939
},
4040
},
4141
{
42-
label: 'Delete project',
42+
label: 'Delete Project',
4343
id: 'Edit.Delete project',
4444
click: () => {
4545
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -49,7 +49,7 @@ export const projectEditRole = (
4949
},
5050
{ type: 'separator' },
5151
{
52-
label: 'Change project directory',
52+
label: 'Change Project Directory',
5353
id: 'Edit.Change project directory',
5454
click: () => {
5555
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -102,7 +102,7 @@ export const modelingEditRole = (
102102
},
103103
},
104104
{
105-
label: 'Edit parameter',
105+
label: 'Edit Parameter',
106106
id: 'Edit.Edit parameter',
107107
click: () => {
108108
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -111,7 +111,7 @@ export const modelingEditRole = (
111111
},
112112
},
113113
{
114-
label: 'Format code',
114+
label: 'Format Code',
115115
id: 'Edit.Format code',
116116
click: () => {
117117
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -121,7 +121,7 @@ export const modelingEditRole = (
121121
},
122122
{ type: 'separator' },
123123
{
124-
label: 'Rename project',
124+
label: 'Rename Project',
125125
id: 'Edit.Rename project',
126126
click: () => {
127127
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -130,7 +130,7 @@ export const modelingEditRole = (
130130
},
131131
},
132132
{
133-
label: 'Delete project',
133+
label: 'Delete Project',
134134
id: 'Edit.Delete project',
135135
click: () => {
136136
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -140,7 +140,7 @@ export const modelingEditRole = (
140140
},
141141
{ type: 'separator' },
142142
{
143-
label: 'Change project directory',
143+
label: 'Change Project Directory',
144144
id: 'Edit.Change project directory',
145145
click: () => {
146146
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {

src/menu/fileRole.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const projectFileRole = (
1313
label: 'File',
1414
submenu: [
1515
{
16-
label: 'Create project',
16+
label: 'Create Project',
1717
id: 'File.Create project',
1818
accelerator: 'CommandOrControl+N',
1919
click: () => {
@@ -23,7 +23,7 @@ export const projectFileRole = (
2323
},
2424
},
2525
{
26-
label: 'Open project',
26+
label: 'Open Project',
2727
id: 'File.Open project',
2828
accelerator: 'CommandOrControl+P',
2929
click: () => {
@@ -36,7 +36,7 @@ export const projectFileRole = (
3636
// Appears to be only Windows and Mac OS specific. Linux does not have support
3737
{ type: 'separator' },
3838
{
39-
label: 'Add file to project',
39+
label: 'Add File to Project',
4040
id: 'File.Add file to project',
4141
click: () => {
4242
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -58,7 +58,7 @@ export const projectFileRole = (
5858
label: 'Preferences',
5959
submenu: [
6060
{
61-
label: 'User settings',
61+
label: 'User Settings',
6262
id: 'File.Preferences.User settings',
6363
click: () => {
6464
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -76,7 +76,7 @@ export const projectFileRole = (
7676
},
7777
},
7878
{
79-
label: 'User default units',
79+
label: 'User Default Units',
8080
id: 'File.Preferences.User default units',
8181
click: () => {
8282
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -94,7 +94,7 @@ export const projectFileRole = (
9494
},
9595
},
9696
{
97-
label: 'Theme color',
97+
label: 'Theme Color',
9898
id: 'File.Preferences.Theme color',
9999
click: () => {
100100
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -107,7 +107,7 @@ export const projectFileRole = (
107107
{ type: 'separator' },
108108
// Last in list
109109
{
110-
label: 'Sign out',
110+
label: 'Sign Out',
111111
id: 'File.Sign out',
112112
click: () => {
113113
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -128,23 +128,23 @@ export const modelingFileRole = (
128128
submenu: [
129129
// TODO: Once a safe command bar create new file and folder is implemented we can turn these on
130130
// {
131-
// label: 'Create new file',
131+
// label: 'Create New File',
132132
// click: () => {
133133
// typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
134134
// menuLabel: 'File.Create new file',
135135
// })
136136
// },
137137
// },
138138
// {
139-
// label: 'Create new folder',
139+
// label: 'Create New Folder',
140140
// click: () => {
141141
// typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
142142
// menuLabel: 'File.Create new folder',
143143
// })
144144
// },
145145
// },
146146
{
147-
label: 'Create project',
147+
label: 'Create Project',
148148
id: 'File.Create project',
149149
accelerator: 'CommandOrControl+N',
150150
click: () => {
@@ -154,7 +154,7 @@ export const modelingFileRole = (
154154
},
155155
},
156156
{
157-
label: 'Open project',
157+
label: 'Open Project',
158158
id: 'File.Open project',
159159
accelerator: 'CommandOrControl+P',
160160
click: () => {
@@ -167,7 +167,7 @@ export const modelingFileRole = (
167167
// Appears to be only Windows and Mac OS specific. Linux does not have support
168168
{ type: 'separator' },
169169
{
170-
label: 'Add file to project',
170+
label: 'Add File to Project',
171171
id: 'File.Add file to project',
172172
click: () => {
173173
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -176,7 +176,7 @@ export const modelingFileRole = (
176176
},
177177
},
178178
{
179-
label: 'Export current part',
179+
label: 'Export Current Part',
180180
id: 'File.Export current part',
181181
click: () => {
182182
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -189,7 +189,7 @@ export const modelingFileRole = (
189189
label: 'Preferences',
190190
submenu: [
191191
{
192-
label: 'Project settings',
192+
label: 'Project Settings',
193193
id: 'File.Preferences.Project settings',
194194
click: () => {
195195
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -198,7 +198,7 @@ export const modelingFileRole = (
198198
},
199199
},
200200
{
201-
label: 'User settings',
201+
label: 'User Settings',
202202
id: 'File.Preferences.User settings',
203203
click: () => {
204204
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -216,7 +216,7 @@ export const modelingFileRole = (
216216
},
217217
},
218218
{
219-
label: 'User default units',
219+
label: 'User Default Units',
220220
id: 'File.Preferences.User default units',
221221
click: () => {
222222
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -234,7 +234,7 @@ export const modelingFileRole = (
234234
},
235235
},
236236
{
237-
label: 'Theme color',
237+
label: 'Theme Color',
238238
id: 'File.Preferences.Theme color',
239239
click: () => {
240240
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@@ -247,7 +247,7 @@ export const modelingFileRole = (
247247
{ type: 'separator' },
248248
// Last in list
249249
{
250-
label: 'Sign out',
250+
label: 'Sign Out',
251251
id: 'File.Sign out',
252252
click: () => {
253253
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {

0 commit comments

Comments
 (0)