Capitalize labels in the native file menu (#7639)

This commit is contained in:
Jace Browning
2025-06-28 12:00:47 -04:00
committed by GitHub
parent 30000a1eac
commit 7ec11d23c8
6 changed files with 112 additions and 119 deletions

View File

@ -9,7 +9,7 @@ export const modelingDesignRole = (
label: 'Design', label: 'Design',
submenu: [ submenu: [
{ {
label: 'Start sketch', label: 'Start Sketch',
id: 'Design.Start sketch', id: 'Design.Start sketch',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -19,7 +19,7 @@ export const modelingDesignRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Create an offset plane', label: 'Create an Offset Plane',
id: 'Design.Create an offset plane', id: 'Design.Create an offset plane',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'Design.Create a helix',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'Design.Create a parameter',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -47,7 +47,7 @@ export const modelingDesignRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Create an additive feature', label: 'Create an Additive Feature',
id: 'Design.Create an additive feature', id: 'Design.Create an additive feature',
submenu: [ submenu: [
{ {
@ -89,7 +89,7 @@ export const modelingDesignRole = (
], ],
}, },
{ {
label: 'Apply modification feature', label: 'Apply Modification Feature',
id: 'Design.Apply modification feature', id: 'Design.Apply modification feature',
submenu: [ submenu: [
{ {
@ -123,7 +123,7 @@ export const modelingDesignRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Insert from project file', label: 'Insert from Project File',
id: 'Design.Insert from project file', id: 'Design.Insert from project file',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {

View File

@ -30,7 +30,7 @@ export const projectEditRole = (
label: 'Edit', label: 'Edit',
submenu: [ submenu: [
{ {
label: 'Rename project', label: 'Rename Project',
id: 'Edit.Rename project', id: 'Edit.Rename project',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -39,7 +39,7 @@ export const projectEditRole = (
}, },
}, },
{ {
label: 'Delete project', label: 'Delete Project',
id: 'Edit.Delete project', id: 'Edit.Delete project',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -49,7 +49,7 @@ export const projectEditRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Change project directory', label: 'Change Project Directory',
id: 'Edit.Change project directory', id: 'Edit.Change project directory',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -102,7 +102,7 @@ export const modelingEditRole = (
}, },
}, },
{ {
label: 'Edit parameter', label: 'Edit Parameter',
id: 'Edit.Edit parameter', id: 'Edit.Edit parameter',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -111,7 +111,7 @@ export const modelingEditRole = (
}, },
}, },
{ {
label: 'Format code', label: 'Format Code',
id: 'Edit.Format code', id: 'Edit.Format code',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -121,7 +121,7 @@ export const modelingEditRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Rename project', label: 'Rename Project',
id: 'Edit.Rename project', id: 'Edit.Rename project',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -130,7 +130,7 @@ export const modelingEditRole = (
}, },
}, },
{ {
label: 'Delete project', label: 'Delete Project',
id: 'Edit.Delete project', id: 'Edit.Delete project',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -140,7 +140,7 @@ export const modelingEditRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Change project directory', label: 'Change Project Directory',
id: 'Edit.Change project directory', id: 'Edit.Change project directory',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {

View File

@ -13,7 +13,7 @@ export const projectFileRole = (
label: 'File', label: 'File',
submenu: [ submenu: [
{ {
label: 'Create project', label: 'Create Project',
id: 'File.Create project', id: 'File.Create project',
accelerator: 'CommandOrControl+N', accelerator: 'CommandOrControl+N',
click: () => { click: () => {
@ -23,7 +23,7 @@ export const projectFileRole = (
}, },
}, },
{ {
label: 'Open project', label: 'Open Project',
id: 'File.Open project', id: 'File.Open project',
accelerator: 'CommandOrControl+P', accelerator: 'CommandOrControl+P',
click: () => { click: () => {
@ -36,7 +36,7 @@ export const projectFileRole = (
// Appears to be only Windows and Mac OS specific. Linux does not have support // Appears to be only Windows and Mac OS specific. Linux does not have support
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Add file to project', label: 'Add File to Project',
id: 'File.Add file to project', id: 'File.Add file to project',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -58,7 +58,7 @@ export const projectFileRole = (
label: 'Preferences', label: 'Preferences',
submenu: [ submenu: [
{ {
label: 'User settings', label: 'User Settings',
id: 'File.Preferences.User settings', id: 'File.Preferences.User settings',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'File.Preferences.User default units',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -94,7 +94,7 @@ export const projectFileRole = (
}, },
}, },
{ {
label: 'Theme color', label: 'Theme Color',
id: 'File.Preferences.Theme color', id: 'File.Preferences.Theme color',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -107,7 +107,7 @@ export const projectFileRole = (
{ type: 'separator' }, { type: 'separator' },
// Last in list // Last in list
{ {
label: 'Sign out', label: 'Sign Out',
id: 'File.Sign out', id: 'File.Sign out',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -128,7 +128,7 @@ export const modelingFileRole = (
submenu: [ submenu: [
// TODO: Once a safe command bar create new file and folder is implemented we can turn these on // 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: () => { // click: () => {
// typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { // typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
// menuLabel: 'File.Create new file', // menuLabel: 'File.Create new file',
@ -136,7 +136,7 @@ export const modelingFileRole = (
// }, // },
// }, // },
// { // {
// label: 'Create new folder', // label: 'Create New Folder',
// click: () => { // click: () => {
// typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { // typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
// menuLabel: 'File.Create new folder', // menuLabel: 'File.Create new folder',
@ -144,7 +144,7 @@ export const modelingFileRole = (
// }, // },
// }, // },
{ {
label: 'Create project', label: 'Create Project',
id: 'File.Create project', id: 'File.Create project',
accelerator: 'CommandOrControl+N', accelerator: 'CommandOrControl+N',
click: () => { click: () => {
@ -154,7 +154,7 @@ export const modelingFileRole = (
}, },
}, },
{ {
label: 'Open project', label: 'Open Project',
id: 'File.Open project', id: 'File.Open project',
accelerator: 'CommandOrControl+P', accelerator: 'CommandOrControl+P',
click: () => { click: () => {
@ -167,7 +167,7 @@ export const modelingFileRole = (
// Appears to be only Windows and Mac OS specific. Linux does not have support // Appears to be only Windows and Mac OS specific. Linux does not have support
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Add file to project', label: 'Add File to Project',
id: 'File.Add file to project', id: 'File.Add file to project',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'File.Export current part',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -189,7 +189,7 @@ export const modelingFileRole = (
label: 'Preferences', label: 'Preferences',
submenu: [ submenu: [
{ {
label: 'Project settings', label: 'Project Settings',
id: 'File.Preferences.Project settings', id: 'File.Preferences.Project settings',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -198,7 +198,7 @@ export const modelingFileRole = (
}, },
}, },
{ {
label: 'User settings', label: 'User Settings',
id: 'File.Preferences.User settings', id: 'File.Preferences.User settings',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'File.Preferences.User default units',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -234,7 +234,7 @@ export const modelingFileRole = (
}, },
}, },
{ {
label: 'Theme color', label: 'Theme Color',
id: 'File.Preferences.Theme color', id: 'File.Preferences.Theme color',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -247,7 +247,7 @@ export const modelingFileRole = (
{ type: 'separator' }, { type: 'separator' },
// Last in list // Last in list
{ {
label: 'Sign out', label: 'Sign Out',
id: 'File.Sign out', id: 'File.Sign out',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {

View File

@ -14,7 +14,7 @@ export const helpRole = (
submenu: [ submenu: [
{ {
id: 'Help.Show all commands', id: 'Help.Show all commands',
label: 'Show all commands', label: 'Show All Commands',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
menuLabel: 'Help.Command Palette...', menuLabel: 'Help.Command Palette...',
@ -22,7 +22,7 @@ export const helpRole = (
}, },
}, },
{ {
label: 'KCL code samples', label: 'KCL Code Samples',
id: 'Help.KCL code samples', id: 'Help.KCL code samples',
click: () => { click: () => {
shell shell
@ -31,13 +31,13 @@ export const helpRole = (
}, },
}, },
{ {
label: 'KCL docs', label: 'KCL Docs',
click: () => { click: () => {
shell.openExternal('https://zoo.dev/docs/kcl').catch(reportRejection) shell.openExternal('https://zoo.dev/docs/kcl').catch(reportRejection)
}, },
}, },
{ {
label: 'Get started with Text-to-CAD', label: 'Get Started with Text-to-CAD',
click: () => { click: () => {
shell shell
.openExternal('https://text-to-cad.zoo.dev/dashboard') .openExternal('https://text-to-cad.zoo.dev/dashboard')
@ -46,7 +46,7 @@ export const helpRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Ask the community discord', label: 'Ask the Community Discord',
click: () => { click: () => {
shell shell
.openExternal('https://discord.gg/JQEpHR7Nt2') .openExternal('https://discord.gg/JQEpHR7Nt2')
@ -54,7 +54,7 @@ export const helpRole = (
}, },
}, },
{ {
label: 'Ask the community discourse', label: 'Ask the Community Discourse',
click: () => { click: () => {
shell shell
.openExternal('https://community.zoo.dev/') .openExternal('https://community.zoo.dev/')
@ -63,7 +63,7 @@ export const helpRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Report a bug', label: 'Report a Bug',
id: 'Help.Report a bug', id: 'Help.Report a bug',
click: () => { click: () => {
shell shell
@ -74,7 +74,7 @@ export const helpRole = (
}, },
}, },
{ {
label: 'Request a feature', label: 'Request a Feature',
click: () => { click: () => {
shell shell
.openExternal( .openExternal(
@ -86,7 +86,7 @@ export const helpRole = (
{ type: 'separator' }, { type: 'separator' },
{ {
id: 'Help.Replay onboarding tutorial', id: 'Help.Replay onboarding tutorial',
label: 'Replay onboarding tutorial', label: 'Replay Onboarding Tutorial',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
menuLabel: 'Help.Replay onboarding tutorial', menuLabel: 'Help.Replay onboarding tutorial',
@ -99,7 +99,7 @@ export const helpRole = (
{ role: 'forceReload' }, { role: 'forceReload' },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Show release notes', label: 'Show Release Notes',
click: () => { click: () => {
shell shell
.openExternal('https://github.com/KittyCAD/modeling-app/releases') .openExternal('https://github.com/KittyCAD/modeling-app/releases')
@ -107,14 +107,14 @@ export const helpRole = (
}, },
}, },
{ {
label: 'Check for updates', label: 'Check for Updates',
click: () => { click: () => {
getAutoUpdater().checkForUpdates().catch(reportRejection) getAutoUpdater().checkForUpdates().catch(reportRejection)
}, },
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Manage account', label: 'Manage Account',
click: () => { click: () => {
shell.openExternal('https://zoo.dev/account').catch(reportRejection) shell.openExternal('https://zoo.dev/account').catch(reportRejection)
}, },

View File

@ -12,47 +12,47 @@ type HeaderLabel =
| 'View' | 'View'
type FileRoleLabel = type FileRoleLabel =
| 'Open project' | 'Open Project'
| 'Create project' | 'Create Project'
| 'Import file from URL' | 'Import File from URL'
| 'Preferences' | 'Preferences'
| 'User settings' | 'User Settings'
| 'Keybindings' | 'Keybindings'
| 'Sign out' | 'Sign Out'
| 'Theme' | 'Theme'
| 'Theme color' | 'Theme Color'
| 'Export current part' | 'Export Current Part'
| 'Create new file' | 'Create New File'
| 'Create new folder' | 'Create New Folder'
| 'Share part via Zoo link' | 'Share Part via Zoo Link'
| 'Project settings' | 'Project Settings'
| 'Add file to project' | 'Add File to Project'
| 'User default units' | 'User Default Units'
type EditRoleLabel = type EditRoleLabel =
| 'Rename project' | 'Rename Project'
| 'Delete project' | 'Delete Project'
| 'Change project directory' | 'Change Project Directory'
| 'Undo' | 'Undo'
| 'Redo' | 'Redo'
| 'Speech' | 'Speech'
| 'Edit parameter' | 'Edit Parameter'
| 'Modify with Zoo Text-To-CAD' | 'Modify with Zoo Text-To-CAD'
| 'Format code' | 'Format Code'
type HelpRoleLabel = type HelpRoleLabel =
| 'Report a bug' | 'Report a Bug'
| 'Request a feature' | 'Request a Feature'
| 'Ask the community discord' | 'Ask the Community Discord'
| 'Ask the community discourse' | 'Ask the Community Discourse'
| 'KCL code samples' | 'KCL Code Samples'
| 'KCL docs' | 'KCL Docs'
| 'Replay onboarding tutorial' | 'Replay Onboarding Tutorial'
| 'Show release notes' | 'Show Release Notes'
| 'Check for updates' | 'Check for Updates'
| 'Manage account' | 'Manage Account'
| 'Get started with Text-to-CAD' | 'Get Started with Text-to-CAD'
| 'Show all commands' | 'Show All Commands'
type ViewRoleLabel = type ViewRoleLabel =
| 'Command Palette...' | 'Command Palette...'
@ -64,37 +64,37 @@ type ViewRoleLabel =
| 'Variables' | 'Variables'
| 'Logs' | 'Logs'
| 'Debug' | 'Debug'
| 'Standard views' | 'Standard Views'
| 'Orthographic view' | 'Orthographic View'
| 'Perspective view' | 'Perspective View'
| 'Right view' | 'Right View'
| 'Back view' | 'Back View'
| 'Top view' | 'Top View'
| 'Left view' | 'Left View'
| 'Front view' | 'Front View'
| 'Bottom view' | 'Bottom View'
| 'Reset view' | 'Reset View'
| 'Center view on selection' | 'Center View on Selection'
| 'Refresh' | 'Refresh'
| 'Named views' | 'Named Views'
| 'Create named view' | 'Create Named View'
| 'Load named view' | 'Load Named View'
| 'Delete named view' | 'Delete Named View'
type DesignRoleLabel = type DesignRoleLabel =
| 'Design' | 'Design'
| 'Create a parameter' | 'Create a Parameter'
| 'Insert from project file' | 'Insert from Project File'
| 'Create with Zoo Text-To-CAD' | 'Create with Zoo Text-To-CAD'
| 'Start sketch' | 'Start Sketch'
| 'Create an offset plane' | 'Create an Offset Plane'
| 'Create a helix' | 'Create a Helix'
| 'Create an additive feature' | 'Create an Additive Feature'
| 'Extrude' | 'Extrude'
| 'Revolve' | 'Revolve'
| 'Sweep' | 'Sweep'
| 'Loft' | 'Loft'
| 'Apply modification feature' | 'Apply Modification Feature'
| 'Fillet' | 'Fillet'
| 'Chamfer' | 'Chamfer'
| 'Shell' | 'Shell'

View File

@ -74,7 +74,7 @@ export const modelingViewRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Orthographic view', label: 'Orthographic View',
id: 'View.Orthographic view', id: 'View.Orthographic view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -83,7 +83,7 @@ export const modelingViewRole = (
}, },
}, },
{ {
label: 'Perspective view', label: 'Perspective View',
id: 'View.Perspective view', id: 'View.Perspective view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -93,11 +93,11 @@ export const modelingViewRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Standard views', label: 'Standard Views',
id: 'View.Standard views', id: 'View.Standard views',
submenu: [ submenu: [
{ {
label: 'Right view', label: 'Right View',
id: 'View.Standard views.Right view', id: 'View.Standard views.Right view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -106,7 +106,7 @@ export const modelingViewRole = (
}, },
}, },
{ {
label: 'Back view', label: 'Back View',
id: 'View.Standard views.Back view', id: 'View.Standard views.Back view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -114,9 +114,8 @@ export const modelingViewRole = (
}) })
}, },
}, },
{ {
label: 'Top view', label: 'Top View',
id: 'View.Standard views.Top view', id: 'View.Standard views.Top view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -124,9 +123,8 @@ export const modelingViewRole = (
}) })
}, },
}, },
{ {
label: 'Left view', label: 'Left View',
id: 'View.Standard views.Left view', id: 'View.Standard views.Left view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -134,9 +132,8 @@ export const modelingViewRole = (
}) })
}, },
}, },
{ {
label: 'Front view', label: 'Front View',
id: 'View.Standard views.Front view', id: 'View.Standard views.Front view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -144,9 +141,8 @@ export const modelingViewRole = (
}) })
}, },
}, },
{ {
label: 'Bottom view', label: 'Bottom View',
id: 'View.Standard views.Bottom view', id: 'View.Standard views.Bottom view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -156,7 +152,7 @@ export const modelingViewRole = (
}, },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'Reset view', label: 'Reset View',
id: 'View.Standard views.Reset view', id: 'View.Standard views.Reset view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'View.Standard views.Center view on selection',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {
@ -186,11 +181,11 @@ export const modelingViewRole = (
], ],
}, },
{ {
label: 'Named views', label: 'Named Views',
id: 'View.Named views', id: 'View.Named views',
submenu: [ submenu: [
{ {
label: 'Create named view', label: 'Create Named View',
id: 'View.Named views.Create named view', id: 'View.Named views.Create named view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'View.Named views.Load named view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { 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', id: 'View.Named views.Delete named view',
click: () => { click: () => {
typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', { typeSafeWebContentsSend(mainWindow, 'menu-action-clicked', {