Group comfy core settings (#508)

* Add category overwrite

* Group settings
This commit is contained in:
Chenlei Hu
2024-08-18 12:49:23 -04:00
committed by GitHub
parent ec5f1152da
commit add2f9baa0
12 changed files with 47 additions and 10 deletions

View File

@@ -714,6 +714,7 @@ app.registerExtension({
app.ui.settings.addSetting({
id,
category: ['Comfy', 'ColorPalette'],
name: 'Color Palette',
type: (name, setter, value) => {
const options = [

View File

@@ -23,7 +23,8 @@ app.registerExtension({
}
app.ui.settings.addSetting({
id,
name: 'Invert Menu Scrolling',
category: ['Comfy', 'Graph', 'InvertMenuScrolling'],
name: 'Invert Context Menu Scrolling',
type: 'boolean',
defaultValue: false,
onChange(value) {

View File

@@ -6,6 +6,7 @@ const ext = {
async setup(app) {
app.ui.settings.addSetting({
id,
category: ['Comfy', 'Graph', 'LinkRenderMode'],
name: 'Link Render Mode',
defaultValue: 2,
type: 'combo',

View File

@@ -11,7 +11,9 @@ app.registerExtension({
LiteGraph.middle_click_slot_add_default_node = true
this.suggestionsNumber = app.ui.settings.addSetting({
id: 'Comfy.NodeSuggestions.number',
category: ['Comfy', 'Node Search Box', 'NodeSuggestions'],
name: 'Number of nodes suggestions',
tooltip: 'Only for litegraph searchbox/context menu',
type: 'slider',
attrs: {
min: 1,

View File

@@ -23,7 +23,8 @@ app.registerExtension({
// Add setting to control grid size
app.ui.settings.addSetting({
id: 'Comfy.SnapToGrid.GridSize',
name: 'Grid Size',
category: ['Comfy', 'Graph', 'GridSize'],
name: 'Snap to gird size',
type: 'slider',
attrs: {
min: 1,