Compare commits

...

2 Commits

Author SHA1 Message Date
Austin Mroz
8f15084fa4 Fix ghost links on IO remove slot 2026-05-26 16:47:18 -07:00
pythongosssss
5a7b1d6a90 fix: improve read only vue node widget contrast (#12455)
## Summary

When a text widget in Vue nodes has an upstream node connected to it,
the widget becomes read-only. However, the disabled state token color is
virtually the same as the default node background color, making it
difficult to visually distinguish that the widget is disabled.

This update changes readonly widgets to use a darker background

## Changes

- **What**: 
- add read only widget bg style

## Screenshots (if applicable)

Before
<img width="2556" height="1858" alt="Screen Shot 2026-05-25 at 06 05 43"
src="https://github.com/user-attachments/assets/897a5157-8d4a-4258-9bca-41ca0289bfb6"
/>

After
<img width="2556" height="1858" alt="Screen Shot 2026-05-25 at 06 04 59"
src="https://github.com/user-attachments/assets/a052d040-8a26-4bea-a998-9dde1734a71a"
/>

Light theme:
<img width="550" height="654" alt="image"
src="https://github.com/user-attachments/assets/52d898c7-0c71-4bd8-a5bd-426e8dc5e8b0"
/>
2026-05-26 09:05:36 +00:00
3 changed files with 3 additions and 4 deletions

View File

@@ -406,9 +406,7 @@
--secondary-background-selected
);
--component-node-widget-background-selected: var(--color-charcoal-100);
--component-node-widget-background-disabled: var(
--color-alpha-charcoal-600-30
);
--component-node-widget-background-disabled: var(--color-charcoal-800);
--component-node-widget-background-highlighted: var(--color-smoke-800);
--component-node-widget-promoted: var(--color-purple-700);
--component-node-widget-advanced: var(--color-azure-600);

View File

@@ -265,7 +265,7 @@ export abstract class SubgraphIONodeBase<
break
}
this.subgraph.setDirtyCanvas(true)
this.subgraph.setDirtyCanvas(true, true)
}
/**

View File

@@ -4,6 +4,7 @@ export const WidgetInputBaseClass = cn([
// Background
'not-disabled:bg-component-node-widget-background',
'not-disabled:text-component-node-foreground',
'[[readonly]]:bg-component-node-widget-background-disabled',
// Outline
'border-none',
// Rounded