1- import type { Config , INinjaAction , TemplateName } from '../models' ;
1+ import type { Config , INinjaAction , Screen , TemplateName } from '../models' ;
22import { appLanguages } from '../i18n/app-languages' ;
33import { languageIsEnabled , languages , processorIsEnabled , processors } from '../languages' ;
44import { isMac , predefinedValues , stringUnionToArray } from '../utils/utils' ;
@@ -12,6 +12,7 @@ export const getCommandMenuActions = ({
1212 loadStarterTemplate : ( templateName : TemplateName ) => Promise < void > ;
1313 changeEditorSettings : ( config : Partial < Config > ) => void ;
1414 changeLayout : ( layout : Config [ 'layout' ] ) => void ;
15+ showScreen : ( screen : Screen [ 'screen' ] , options ?: any ) => Promise < void > ;
1516 } ;
1617} ) => {
1718 const { getConfig, loadStarterTemplate, changeEditorSettings, changeLayout } = deps ;
@@ -947,6 +948,17 @@ export const getCommandMenuActions = ({
947948 UI . getThemeColorContainer ( ) ?. querySelector ( 'input' ) ?. click ( ) ;
948949 } ,
949950 } ,
951+ {
952+ id : 'editor theme' ,
953+ title : window . deps . translateString ( 'editorSettings.editorTheme' , 'Editor Theme' ) ,
954+ content : getContent ( 'Editor Theme' ) ,
955+ mdIcon : 'palette' ,
956+ handler : ( ) => {
957+ deps . showScreen ( 'editor-settings' , {
958+ scrollToSelector : ':has(+ label[data-name^="editorTheme"])' ,
959+ } ) ;
960+ } ,
961+ } ,
950962 ] ,
951963 } ,
952964 {
0 commit comments