mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-27 03:19:56 +00:00
Fix opacity not rendered to default nodes
Also causes bypassed nodes in light mode to once again render in light pink (again). Not sure when this regression occurred.
This commit is contained in:
@@ -649,6 +649,8 @@ export class ComfyApp {
|
||||
const opacity = useSettingStore().get('Comfy.Node.Opacity')
|
||||
if (opacity) adjustments.opacity = opacity
|
||||
|
||||
node.bgcolor = adjustColor(bgColor, adjustments)
|
||||
|
||||
if (useColorPaletteStore().completedActivePalette.light_theme) {
|
||||
adjustments.lightness = 0.5
|
||||
|
||||
@@ -658,8 +660,6 @@ export class ComfyApp {
|
||||
}
|
||||
}
|
||||
|
||||
node.bgcolor = adjustColor(bgColor, adjustments)
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const res = origDrawNode.apply(this, arguments)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user