Add new preferences submenu

This commit is contained in:
JannisX11 2020-09-29 16:32:13 +02:00
parent 806bbd61a0
commit 91a2d83afd
3 changed files with 20 additions and 19 deletions

View File

@ -1298,6 +1298,20 @@ const BARS = {
keybind: new Keybind({key: 69, ctrl: true}),
click: function () {Settings.open()}
})
new Action('keybindings_window', {
name: tl('dialog.settings.keybinds') + '...',
icon: 'keyboard',
category: 'blockbench',
keybind: new Keybind({key: 69, ctrl: true}),
click: function () {Settings.open({tab: 'keybindings'})}
})
new Action('theme_window', {
name: tl('dialog.settings.theme') + '...',
icon: 'style',
category: 'blockbench',
keybind: new Keybind({key: 69, ctrl: true}),
click: function () {Settings.open({tab: 'layout_settings'})}
})
new Action('reload', {
icon: 'refresh',
category: 'file',

View File

@ -509,26 +509,12 @@ const MenuBar = {
]},
'export_over',
'export_asset_archive',
/*
'open_model',
{name: 'menu.file.import', id: 'import', icon: 'insert_drive_file', children: [
'add_model',
'extrude_texture'
]},
{name: 'menu.file.export', id: 'export', icon: 'insert_drive_file', children: [
'export_blockmodel',
'export_entity',
'export_class_entity',
'export_optifine_part',
'export_optifine_full',
'export_obj',
]},
'upload_sketchfab'
'save',
*/
'_',
'settings_window',
{name: 'menu.file.preferences', id: 'preferences', icon: 'tune', children: [
'settings_window',
'keybindings_window',
'theme_window',
]},
'plugins_window',
'edit_session'
])

View File

@ -1022,6 +1022,7 @@
"menu.file.recent": "Recent",
"menu.file.import": "Import",
"menu.file.export": "Export",
"menu.file.preferences": "Preferences",
"menu.transform.rotate": "Rotate",
"menu.transform.flip": "Flip",
"menu.transform.center": "Center",