Capitalize labels in the native file menu (#7639)
This commit is contained in:
		| @ -9,7 +9,7 @@ export const modelingDesignRole = ( | ||||
|     label: 'Design', | ||||
|     submenu: [ | ||||
|       { | ||||
|         label: 'Start sketch', | ||||
|         label: 'Start Sketch', | ||||
|         id: 'Design.Start sketch', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -19,7 +19,7 @@ export const modelingDesignRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Create an offset plane', | ||||
|         label: 'Create an Offset Plane', | ||||
|         id: 'Design.Create an offset plane', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -28,7 +28,7 @@ export const modelingDesignRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Create a helix', | ||||
|         label: 'Create a Helix', | ||||
|         id: 'Design.Create a helix', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -37,7 +37,7 @@ export const modelingDesignRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Create a parameter', | ||||
|         label: 'Create a Parameter', | ||||
|         id: 'Design.Create a parameter', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -47,7 +47,7 @@ export const modelingDesignRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Create an additive feature', | ||||
|         label: 'Create an Additive Feature', | ||||
|         id: 'Design.Create an additive feature', | ||||
|         submenu: [ | ||||
|           { | ||||
| @ -89,7 +89,7 @@ export const modelingDesignRole = ( | ||||
|         ], | ||||
|       }, | ||||
|       { | ||||
|         label: 'Apply modification feature', | ||||
|         label: 'Apply Modification Feature', | ||||
|         id: 'Design.Apply modification feature', | ||||
|         submenu: [ | ||||
|           { | ||||
| @ -123,7 +123,7 @@ export const modelingDesignRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Insert from project file', | ||||
|         label: 'Insert from Project File', | ||||
|         id: 'Design.Insert from project file', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|  | ||||
| @ -30,7 +30,7 @@ export const projectEditRole = ( | ||||
|     label: 'Edit', | ||||
|     submenu: [ | ||||
|       { | ||||
|         label: 'Rename project', | ||||
|         label: 'Rename Project', | ||||
|         id: 'Edit.Rename project', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -39,7 +39,7 @@ export const projectEditRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Delete project', | ||||
|         label: 'Delete Project', | ||||
|         id: 'Edit.Delete project', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -49,7 +49,7 @@ export const projectEditRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Change project directory', | ||||
|         label: 'Change Project Directory', | ||||
|         id: 'Edit.Change project directory', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -102,7 +102,7 @@ export const modelingEditRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Edit parameter', | ||||
|         label: 'Edit Parameter', | ||||
|         id: 'Edit.Edit parameter', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -111,7 +111,7 @@ export const modelingEditRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Format code', | ||||
|         label: 'Format Code', | ||||
|         id: 'Edit.Format code', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -121,7 +121,7 @@ export const modelingEditRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Rename project', | ||||
|         label: 'Rename Project', | ||||
|         id: 'Edit.Rename project', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -130,7 +130,7 @@ export const modelingEditRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Delete project', | ||||
|         label: 'Delete Project', | ||||
|         id: 'Edit.Delete project', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -140,7 +140,7 @@ export const modelingEditRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Change project directory', | ||||
|         label: 'Change Project Directory', | ||||
|         id: 'Edit.Change project directory', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|  | ||||
| @ -13,7 +13,7 @@ export const projectFileRole = ( | ||||
|     label: 'File', | ||||
|     submenu: [ | ||||
|       { | ||||
|         label: 'Create project', | ||||
|         label: 'Create Project', | ||||
|         id: 'File.Create project', | ||||
|         accelerator: 'CommandOrControl+N', | ||||
|         click: () => { | ||||
| @ -23,7 +23,7 @@ export const projectFileRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Open project', | ||||
|         label: 'Open Project', | ||||
|         id: 'File.Open project', | ||||
|         accelerator: 'CommandOrControl+P', | ||||
|         click: () => { | ||||
| @ -36,7 +36,7 @@ export const projectFileRole = ( | ||||
|       // Appears to be only Windows and Mac OS specific. Linux does not have support | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Add file to project', | ||||
|         label: 'Add File to Project', | ||||
|         id: 'File.Add file to project', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -58,7 +58,7 @@ export const projectFileRole = ( | ||||
|         label: 'Preferences', | ||||
|         submenu: [ | ||||
|           { | ||||
|             label: 'User settings', | ||||
|             label: 'User Settings', | ||||
|             id: 'File.Preferences.User settings', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -76,7 +76,7 @@ export const projectFileRole = ( | ||||
|             }, | ||||
|           }, | ||||
|           { | ||||
|             label: 'User default units', | ||||
|             label: 'User Default Units', | ||||
|             id: 'File.Preferences.User default units', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -94,7 +94,7 @@ export const projectFileRole = ( | ||||
|             }, | ||||
|           }, | ||||
|           { | ||||
|             label: 'Theme color', | ||||
|             label: 'Theme Color', | ||||
|             id: 'File.Preferences.Theme color', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -107,7 +107,7 @@ export const projectFileRole = ( | ||||
|       { type: 'separator' }, | ||||
|       // Last in list | ||||
|       { | ||||
|         label: 'Sign out', | ||||
|         label: 'Sign Out', | ||||
|         id: 'File.Sign out', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -128,7 +128,7 @@ export const modelingFileRole = ( | ||||
|     submenu: [ | ||||
|       // TODO: Once a safe command bar create new file and folder is implemented we can turn these on | ||||
|       // { | ||||
|       //   label: 'Create new file', | ||||
|       //   label: 'Create New File', | ||||
|       //   click: () => { | ||||
|       //     typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|       //       menuLabel: 'File.Create new file', | ||||
| @ -136,7 +136,7 @@ export const modelingFileRole = ( | ||||
|       //   }, | ||||
|       // }, | ||||
|       // { | ||||
|       //   label: 'Create new folder', | ||||
|       //   label: 'Create New Folder', | ||||
|       //   click: () => { | ||||
|       //     typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|       //       menuLabel: 'File.Create new folder', | ||||
| @ -144,7 +144,7 @@ export const modelingFileRole = ( | ||||
|       //   }, | ||||
|       // }, | ||||
|       { | ||||
|         label: 'Create project', | ||||
|         label: 'Create Project', | ||||
|         id: 'File.Create project', | ||||
|         accelerator: 'CommandOrControl+N', | ||||
|         click: () => { | ||||
| @ -154,7 +154,7 @@ export const modelingFileRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Open project', | ||||
|         label: 'Open Project', | ||||
|         id: 'File.Open project', | ||||
|         accelerator: 'CommandOrControl+P', | ||||
|         click: () => { | ||||
| @ -167,7 +167,7 @@ export const modelingFileRole = ( | ||||
|       // Appears to be only Windows and Mac OS specific. Linux does not have support | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Add file to project', | ||||
|         label: 'Add File to Project', | ||||
|         id: 'File.Add file to project', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -176,7 +176,7 @@ export const modelingFileRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Export current part', | ||||
|         label: 'Export Current Part', | ||||
|         id: 'File.Export current part', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -189,7 +189,7 @@ export const modelingFileRole = ( | ||||
|         label: 'Preferences', | ||||
|         submenu: [ | ||||
|           { | ||||
|             label: 'Project settings', | ||||
|             label: 'Project Settings', | ||||
|             id: 'File.Preferences.Project settings', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -198,7 +198,7 @@ export const modelingFileRole = ( | ||||
|             }, | ||||
|           }, | ||||
|           { | ||||
|             label: 'User settings', | ||||
|             label: 'User Settings', | ||||
|             id: 'File.Preferences.User settings', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -216,7 +216,7 @@ export const modelingFileRole = ( | ||||
|             }, | ||||
|           }, | ||||
|           { | ||||
|             label: 'User default units', | ||||
|             label: 'User Default Units', | ||||
|             id: 'File.Preferences.User default units', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -234,7 +234,7 @@ export const modelingFileRole = ( | ||||
|             }, | ||||
|           }, | ||||
|           { | ||||
|             label: 'Theme color', | ||||
|             label: 'Theme Color', | ||||
|             id: 'File.Preferences.Theme color', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -247,7 +247,7 @@ export const modelingFileRole = ( | ||||
|       { type: 'separator' }, | ||||
|       // Last in list | ||||
|       { | ||||
|         label: 'Sign out', | ||||
|         label: 'Sign Out', | ||||
|         id: 'File.Sign out', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|  | ||||
| @ -14,7 +14,7 @@ export const helpRole = ( | ||||
|     submenu: [ | ||||
|       { | ||||
|         id: 'Help.Show all commands', | ||||
|         label: 'Show all commands', | ||||
|         label: 'Show All Commands', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|             menuLabel: 'Help.Command Palette...', | ||||
| @ -22,7 +22,7 @@ export const helpRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'KCL code samples', | ||||
|         label: 'KCL Code Samples', | ||||
|         id: 'Help.KCL code samples', | ||||
|         click: () => { | ||||
|           shell | ||||
| @ -31,13 +31,13 @@ export const helpRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'KCL docs', | ||||
|         label: 'KCL Docs', | ||||
|         click: () => { | ||||
|           shell.openExternal('https://zoo.dev/docs/kcl').catch(reportRejection) | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Get started with Text-to-CAD', | ||||
|         label: 'Get Started with Text-to-CAD', | ||||
|         click: () => { | ||||
|           shell | ||||
|             .openExternal('https://text-to-cad.zoo.dev/dashboard') | ||||
| @ -46,7 +46,7 @@ export const helpRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Ask the community discord', | ||||
|         label: 'Ask the Community Discord', | ||||
|         click: () => { | ||||
|           shell | ||||
|             .openExternal('https://discord.gg/JQEpHR7Nt2') | ||||
| @ -54,7 +54,7 @@ export const helpRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Ask the community discourse', | ||||
|         label: 'Ask the Community Discourse', | ||||
|         click: () => { | ||||
|           shell | ||||
|             .openExternal('https://community.zoo.dev/') | ||||
| @ -63,7 +63,7 @@ export const helpRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Report a bug', | ||||
|         label: 'Report a Bug', | ||||
|         id: 'Help.Report a bug', | ||||
|         click: () => { | ||||
|           shell | ||||
| @ -74,7 +74,7 @@ export const helpRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Request a feature', | ||||
|         label: 'Request a Feature', | ||||
|         click: () => { | ||||
|           shell | ||||
|             .openExternal( | ||||
| @ -86,7 +86,7 @@ export const helpRole = ( | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         id: 'Help.Replay onboarding tutorial', | ||||
|         label: 'Replay onboarding tutorial', | ||||
|         label: 'Replay Onboarding Tutorial', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|             menuLabel: 'Help.Replay onboarding tutorial', | ||||
| @ -99,7 +99,7 @@ export const helpRole = ( | ||||
|       { role: 'forceReload' }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Show release notes', | ||||
|         label: 'Show Release Notes', | ||||
|         click: () => { | ||||
|           shell | ||||
|             .openExternal('https://github.com/KittyCAD/modeling-app/releases') | ||||
| @ -107,14 +107,14 @@ export const helpRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Check for updates', | ||||
|         label: 'Check for Updates', | ||||
|         click: () => { | ||||
|           getAutoUpdater().checkForUpdates().catch(reportRejection) | ||||
|         }, | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Manage account', | ||||
|         label: 'Manage Account', | ||||
|         click: () => { | ||||
|           shell.openExternal('https://zoo.dev/account').catch(reportRejection) | ||||
|         }, | ||||
|  | ||||
| @ -12,47 +12,47 @@ type HeaderLabel = | ||||
|   | 'View' | ||||
|  | ||||
| type FileRoleLabel = | ||||
|   | 'Open project' | ||||
|   | 'Create project' | ||||
|   | 'Import file from URL' | ||||
|   | 'Open Project' | ||||
|   | 'Create Project' | ||||
|   | 'Import File from URL' | ||||
|   | 'Preferences' | ||||
|   | 'User settings' | ||||
|   | 'User Settings' | ||||
|   | 'Keybindings' | ||||
|   | 'Sign out' | ||||
|   | 'Sign Out' | ||||
|   | 'Theme' | ||||
|   | 'Theme color' | ||||
|   | 'Export current part' | ||||
|   | 'Create new file' | ||||
|   | 'Create new folder' | ||||
|   | 'Share part via Zoo link' | ||||
|   | 'Project settings' | ||||
|   | 'Add file to project' | ||||
|   | 'User default units' | ||||
|   | 'Theme Color' | ||||
|   | 'Export Current Part' | ||||
|   | 'Create New File' | ||||
|   | 'Create New Folder' | ||||
|   | 'Share Part via Zoo Link' | ||||
|   | 'Project Settings' | ||||
|   | 'Add File to Project' | ||||
|   | 'User Default Units' | ||||
|  | ||||
| type EditRoleLabel = | ||||
|   | 'Rename project' | ||||
|   | 'Delete project' | ||||
|   | 'Change project directory' | ||||
|   | 'Rename Project' | ||||
|   | 'Delete Project' | ||||
|   | 'Change Project Directory' | ||||
|   | 'Undo' | ||||
|   | 'Redo' | ||||
|   | 'Speech' | ||||
|   | 'Edit parameter' | ||||
|   | 'Edit Parameter' | ||||
|   | 'Modify with Zoo Text-To-CAD' | ||||
|   | 'Format code' | ||||
|   | 'Format Code' | ||||
|  | ||||
| type HelpRoleLabel = | ||||
|   | 'Report a bug' | ||||
|   | 'Request a feature' | ||||
|   | 'Ask the community discord' | ||||
|   | 'Ask the community discourse' | ||||
|   | 'KCL code samples' | ||||
|   | 'KCL docs' | ||||
|   | 'Replay onboarding tutorial' | ||||
|   | 'Show release notes' | ||||
|   | 'Check for updates' | ||||
|   | 'Manage account' | ||||
|   | 'Get started with Text-to-CAD' | ||||
|   | 'Show all commands' | ||||
|   | 'Report a Bug' | ||||
|   | 'Request a Feature' | ||||
|   | 'Ask the Community Discord' | ||||
|   | 'Ask the Community Discourse' | ||||
|   | 'KCL Code Samples' | ||||
|   | 'KCL Docs' | ||||
|   | 'Replay Onboarding Tutorial' | ||||
|   | 'Show Release Notes' | ||||
|   | 'Check for Updates' | ||||
|   | 'Manage Account' | ||||
|   | 'Get Started with Text-to-CAD' | ||||
|   | 'Show All Commands' | ||||
|  | ||||
| type ViewRoleLabel = | ||||
|   | 'Command Palette...' | ||||
| @ -64,37 +64,37 @@ type ViewRoleLabel = | ||||
|   | 'Variables' | ||||
|   | 'Logs' | ||||
|   | 'Debug' | ||||
|   | 'Standard views' | ||||
|   | 'Orthographic view' | ||||
|   | 'Perspective view' | ||||
|   | 'Right view' | ||||
|   | 'Back view' | ||||
|   | 'Top view' | ||||
|   | 'Left view' | ||||
|   | 'Front view' | ||||
|   | 'Bottom view' | ||||
|   | 'Reset view' | ||||
|   | 'Center view on selection' | ||||
|   | 'Standard Views' | ||||
|   | 'Orthographic View' | ||||
|   | 'Perspective View' | ||||
|   | 'Right View' | ||||
|   | 'Back View' | ||||
|   | 'Top View' | ||||
|   | 'Left View' | ||||
|   | 'Front View' | ||||
|   | 'Bottom View' | ||||
|   | 'Reset View' | ||||
|   | 'Center View on Selection' | ||||
|   | 'Refresh' | ||||
|   | 'Named views' | ||||
|   | 'Create named view' | ||||
|   | 'Load named view' | ||||
|   | 'Delete named view' | ||||
|   | 'Named Views' | ||||
|   | 'Create Named View' | ||||
|   | 'Load Named View' | ||||
|   | 'Delete Named View' | ||||
|  | ||||
| type DesignRoleLabel = | ||||
|   | 'Design' | ||||
|   | 'Create a parameter' | ||||
|   | 'Insert from project file' | ||||
|   | 'Create a Parameter' | ||||
|   | 'Insert from Project File' | ||||
|   | 'Create with Zoo Text-To-CAD' | ||||
|   | 'Start sketch' | ||||
|   | 'Create an offset plane' | ||||
|   | 'Create a helix' | ||||
|   | 'Create an additive feature' | ||||
|   | 'Start Sketch' | ||||
|   | 'Create an Offset Plane' | ||||
|   | 'Create a Helix' | ||||
|   | 'Create an Additive Feature' | ||||
|   | 'Extrude' | ||||
|   | 'Revolve' | ||||
|   | 'Sweep' | ||||
|   | 'Loft' | ||||
|   | 'Apply modification feature' | ||||
|   | 'Apply Modification Feature' | ||||
|   | 'Fillet' | ||||
|   | 'Chamfer' | ||||
|   | 'Shell' | ||||
|  | ||||
| @ -74,7 +74,7 @@ export const modelingViewRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Orthographic view', | ||||
|         label: 'Orthographic View', | ||||
|         id: 'View.Orthographic view', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -83,7 +83,7 @@ export const modelingViewRole = ( | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: 'Perspective view', | ||||
|         label: 'Perspective View', | ||||
|         id: 'View.Perspective view', | ||||
|         click: () => { | ||||
|           typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -93,11 +93,11 @@ export const modelingViewRole = ( | ||||
|       }, | ||||
|       { type: 'separator' }, | ||||
|       { | ||||
|         label: 'Standard views', | ||||
|         label: 'Standard Views', | ||||
|         id: 'View.Standard views', | ||||
|         submenu: [ | ||||
|           { | ||||
|             label: 'Right view', | ||||
|             label: 'Right View', | ||||
|             id: 'View.Standard views.Right view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -106,7 +106,7 @@ export const modelingViewRole = ( | ||||
|             }, | ||||
|           }, | ||||
|           { | ||||
|             label: 'Back view', | ||||
|             label: 'Back View', | ||||
|             id: 'View.Standard views.Back view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -114,9 +114,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Top view', | ||||
|             label: 'Top View', | ||||
|             id: 'View.Standard views.Top view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -124,9 +123,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Left view', | ||||
|             label: 'Left View', | ||||
|             id: 'View.Standard views.Left view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -134,9 +132,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Front view', | ||||
|             label: 'Front View', | ||||
|             id: 'View.Standard views.Front view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -144,9 +141,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Bottom view', | ||||
|             label: 'Bottom View', | ||||
|             id: 'View.Standard views.Bottom view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -156,7 +152,7 @@ export const modelingViewRole = ( | ||||
|           }, | ||||
|           { type: 'separator' }, | ||||
|           { | ||||
|             label: 'Reset view', | ||||
|             label: 'Reset View', | ||||
|             id: 'View.Standard views.Reset view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -164,9 +160,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Center view on selection', | ||||
|             label: 'Center View on Selection', | ||||
|             id: 'View.Standard views.Center view on selection', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -186,11 +181,11 @@ export const modelingViewRole = ( | ||||
|         ], | ||||
|       }, | ||||
|       { | ||||
|         label: 'Named views', | ||||
|         label: 'Named Views', | ||||
|         id: 'View.Named views', | ||||
|         submenu: [ | ||||
|           { | ||||
|             label: 'Create named view', | ||||
|             label: 'Create Named View', | ||||
|             id: 'View.Named views.Create named view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -198,9 +193,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Load named view', | ||||
|             label: 'Load Named View', | ||||
|             id: 'View.Named views.Load named view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
| @ -208,9 +202,8 @@ export const modelingViewRole = ( | ||||
|               }) | ||||
|             }, | ||||
|           }, | ||||
|  | ||||
|           { | ||||
|             label: 'Delete named view', | ||||
|             label: 'Delete Named View', | ||||
|             id: 'View.Named views.Delete named view', | ||||
|             click: () => { | ||||
|               typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user