mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 21:20:12 +00:00
Group comfy core settings (#508)
* Add category overwrite * Group settings
This commit is contained in:
@@ -714,6 +714,7 @@ app.registerExtension({
|
||||
|
||||
app.ui.settings.addSetting({
|
||||
id,
|
||||
category: ['Comfy', 'ColorPalette'],
|
||||
name: 'Color Palette',
|
||||
type: (name, setter, value) => {
|
||||
const options = [
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user