mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
Manual backport of #7734 to `cloud/1.37` ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8047-backport-cloud-1-37-linear-v2-Simple-Mode-2e86d73d365081948861debeae9604f0) by [Unito](https://www.unito.io)
14 lines
403 B
TypeScript
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 })
|
|
}
|