-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add basic menu * Add workflows/edit to menu bar * Add command store * Fix z-index * Fix beta menu setting switch * nit * Drop to center * Fix command invocation
- Loading branch information
Showing
13 changed files
with
298 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<teleport to=".comfyui-body-top"> | ||
<div class="top-menubar comfyui-menu" v-if="betaMenuEnabled"> | ||
<h1 class="comfyui-logo mx-2">ComfyUI</h1> | ||
<Menubar | ||
:model="items" | ||
class="border-none p-0 bg-transparent" | ||
:pt="{ | ||
rootList: 'gap-0' | ||
}" | ||
/> | ||
</div> | ||
</teleport> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import Menubar from 'primevue/menubar' | ||
import { useCoreMenuItemStore } from '@/stores/coreMenuItemStore' | ||
import { computed } from 'vue' | ||
import { useSettingStore } from '@/stores/settingStore' | ||
const settingStore = useSettingStore() | ||
const betaMenuEnabled = computed( | ||
() => settingStore.get('Comfy.UseNewMenu') !== 'Disabled' | ||
) | ||
const coreMenuItemsStore = useCoreMenuItemStore() | ||
const items = coreMenuItemsStore.menuItems | ||
</script> | ||
|
||
<style scoped> | ||
.comfyui-menu { | ||
width: 100vw; | ||
background: var(--comfy-menu-bg); | ||
color: var(--fg-color); | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: 0.8em; | ||
display: flex; | ||
align-items: center; | ||
box-sizing: border-box; | ||
z-index: 1000; | ||
order: 0; | ||
grid-column: 1/-1; | ||
overflow: auto; | ||
max-height: 90vh; | ||
} | ||
.comfyui-logo { | ||
font-size: 1.2em; | ||
user-select: none; | ||
cursor: default; | ||
} | ||
</style> | ||
|
||
<style> | ||
.top-menubar .p-menubar-item-link svg { | ||
display: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<div class="workflow-tabs"> | ||
<SelectButton | ||
v-model="workflowStore.activeWorkflow" | ||
:options="workflowStore.openWorkflows" | ||
aria-labelledby="basic" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useWorkflowStore } from '@/stores/workflowStore' | ||
import SelectButton from 'primevue/selectbutton' | ||
const workflowStore = useWorkflowStore() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.