TSK-1323: Fix colors for list (#3069)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-04-25 23:11:50 +07:00
committed by GitHub
parent 123eb6e3ad
commit ef987eef56
17 changed files with 275 additions and 112 deletions
@@ -14,11 +14,10 @@
-->
<script lang="ts">
import core, { StatusCategory, WithLookup } from '@hcengineering/core'
import { createQuery, getClient } from '@hcengineering/presentation'
import { createQuery, getClient, statusStore } from '@hcengineering/presentation'
import { IssueStatus } from '@hcengineering/tracker'
import { getPlatformColor, IconSize } from '@hcengineering/ui'
import { IconSize, getPlatformColor } from '@hcengineering/ui'
import tracker from '../../plugin'
import { statusStore } from '@hcengineering/presentation'
import StatusIcon from '../icons/StatusIcon.svelte'
export let value: WithLookup<IssueStatus>
@@ -78,5 +77,5 @@
</script>
{#if icon !== undefined && color !== undefined && category !== undefined}
<StatusIcon {category} {size} fill={color} {statusIcon} />
<StatusIcon on:accent-color {category} {size} fill={color} {statusIcon} />
{/if}
@@ -27,7 +27,7 @@
{#if value}
<div class="flex-presenter cursor-default" style:color={'inherit'}>
{#if !inline}
<IssueStatusIcon {value} {size} />
<IssueStatusIcon {value} {size} on:accent-color />
{/if}
<span
class="overflow-label"
@@ -31,5 +31,6 @@
{kind}
{colorInherit}
{accent}
on:accent-color
/>
{/if}