Focus mode (#1365)

* Menu hamburger

* Focus

* nit

* nit

* nit

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-10-29 17:25:18 -04:00
committed by GitHub
parent 795e932b8f
commit 35fab0bef3
13 changed files with 86 additions and 38 deletions

View File

@@ -19,6 +19,7 @@ import { useWorkflowStore } from './workflowStore'
import { type KeybindingImpl, useKeybindingStore } from './keybindingStore'
import { useBottomPanelStore } from './workspace/bottomPanelStore'
import { LGraphNode } from '@comfyorg/litegraph'
import { useWorkspaceStore } from './workspaceStateStore'
export interface ComfyCommand {
id: string
@@ -467,6 +468,15 @@ export const useCommandStore = defineStore('command', () => {
function: () => {
useBottomPanelStore().toggleBottomPanel()
}
},
{
id: 'Workspace.ToggleFocusMode',
icon: 'pi pi-eye',
label: 'Toggle Focus Mode',
versionAdded: '1.3.27',
function: () => {
useWorkspaceStore().toggleFocusMode()
}
}
]