Skip to content

Commit ec5f115

Browse files
authored
Organize setting display for new settings dialog (#507)
1 parent 17aa44d commit ec5f115

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

src/extensions/core/colorPalette.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { lightenColor } from '@/utils/colorUtil'
21
import { app } from '../../scripts/app'
32
import { $el } from '../../scripts/ui'
43
import type { ColorPalettes, Palette } from '@/types/colorPalette'
@@ -749,12 +748,6 @@ app.registerExtension({
749748
) as HTMLSelectElement
750749

751750
return $el('tr', [
752-
$el('td', [
753-
$el('label', {
754-
for: id.replaceAll('.', '-'),
755-
textContent: 'Color palette'
756-
})
757-
]),
758751
$el('td', [
759752
els.select,
760753
$el(

src/extensions/core/widgetInputs.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,7 @@ app.registerExtension({
662662
init() {
663663
useConversionSubmenusSetting = app.ui.settings.addSetting({
664664
id: 'Comfy.NodeInputConversionSubmenus',
665-
name: 'Node widget/input conversion sub-menus',
666-
tooltip:
667-
'In the node context menu, place the entries that convert between input/widget in sub-menus.',
665+
name: 'In the node context menu, place the entries that convert between input/widget in sub-menus.',
668666
type: 'boolean',
669667
defaultValue: true
670668
})

src/scripts/ui.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export class ComfyUI {
401401

402402
this.settings.addSetting({
403403
id: 'Comfy.DisableSliders',
404-
name: 'Disable sliders.',
404+
name: 'Disable node widget sliders',
405405
type: 'boolean',
406406
defaultValue: false
407407
})
@@ -746,9 +746,9 @@ export class ComfyUI {
746746
})
747747
]) as HTMLDivElement
748748

749-
const devMode = this.settings.addSetting({
749+
this.settings.addSetting({
750750
id: 'Comfy.DevMode',
751-
name: 'Enable Dev mode Options',
751+
name: 'Enable dev mode options (API save, etc.)',
752752
type: 'boolean',
753753
defaultValue: false,
754754
onChange: function (value) {

src/scripts/widgets.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,10 @@ function isSlider(display, app) {
347347
export function initWidgets(app) {
348348
app.ui.settings.addSetting({
349349
id: 'Comfy.WidgetControlMode',
350-
name: 'Widget Value Control Mode',
350+
name: 'Controls when widget values are updated (randomize/increment/decrement), either before the prompt is queued or after.',
351351
type: 'combo',
352352
defaultValue: 'after',
353353
options: ['before', 'after'],
354-
tooltip:
355-
'Controls when widget values are updated (randomize/increment/decrement), either before the prompt is queued or after.',
356354
onChange(value) {
357355
controlValueRunBefore = value === 'before'
358356
for (const n of app.graph._nodes) {

0 commit comments

Comments
 (0)