[backport cloud/1.37] linear v2: Simple Mode (#8047)

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)
This commit is contained in:
AustinMroz
2026-01-14 11:44:18 -08:00
committed by GitHub
parent c77f0cba45
commit 5ec29f64b6
32 changed files with 1431 additions and 319 deletions

View File

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