Reland "Support associated socket for widgets" (#904)

- Reverts Comfy-Org/litegraph.js#896
- Relands #891
This commit is contained in:
filtered
2025-04-07 01:35:42 +10:00
committed by GitHub
parent 3815296ab5
commit 079a18a391
12 changed files with 77 additions and 53 deletions

View File

@@ -45,7 +45,7 @@ export class ButtonWidget extends BaseWidget implements IButtonWidget {
ctx.fillRect(margin, y, width - margin * 2, height)
// Draw button outline if not disabled
if (show_text && !this.disabled) {
if (show_text && !this.computedDisabled) {
ctx.strokeStyle = this.outline_color
ctx.strokeRect(margin, y, width - margin * 2, height)
}