ui: Improve CardTheme colors

This commit is contained in:
nemunaire 2021-09-03 11:36:25 +02:00
commit f5941dcece
2 changed files with 9 additions and 4 deletions

View file

@ -38,12 +38,17 @@
<Icon name="heart-fill" />
</Badge>
{/if}
{#if theme.exercice_coeff_max > 1}
<Badge color="warning">
{#if theme.exercice_coeff_max > 1 || (exercice && exercice.curcoeff > 1)}
<Badge color="success">
<Icon name="gift-fill" />
</Badge>
{/if}
{#if $myThemes[theme.id].exercice_solved > 0}
{#if exercice && $my && $my.exercices[exercice.id] && $my.exercices[exercice.id].solved_rank}
<Badge color="light" class="text-success fw-bold">
<Icon name="check" />
</Badge>
{/if}
{#if !exercice && $myThemes[theme.id].exercice_solved > 0}
<Badge color="light">
{$myThemes[theme.id].exercice_solved}/{theme.exercice_count}
</Badge>