Files
ComfyUI_frontend/src/renderer/extensions/vueNodes/utils/nodeStyleUtils.ts
2026-01-14 11:44:18 -08:00

14 lines
403 B
TypeScript

import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
import { adjustColor } from '@/utils/colorUtil'
/**
* Applies light theme color adjustments to a color
*/
export function applyLightThemeColor(color?: string): string {
if (!color) return ''
if (!useColorPaletteStore().completedActivePalette.light_theme) return color
return adjustColor(color, { lightness: 0.5 })
}