diff --git a/apps/web/src/oj/achievement/components/Medal.vue b/apps/web/src/oj/achievement/components/Medal.vue index c9ca36f..93e32db 100644 --- a/apps/web/src/oj/achievement/components/Medal.vue +++ b/apps/web/src/oj/achievement/components/Medal.vue @@ -24,6 +24,14 @@ const color = computed(() => RARITY_COLOR[props.rarity]) const r = computed(() => props.size / 2 + 3) const box = computed(() => props.size + 8) const circumference = computed(() => 2 * Math.PI * r.value) +// 底色都是半透明的,下面垫一层卡片底色 —— 不然成就线的进度线会从徽章中间透出来 +const onBg = computed( + () => `linear-gradient(${color.value}26, ${color.value}26), ${theme.value.cardColor}`, +) +const offBg = computed( + () => + `linear-gradient(${theme.value.actionColor}, ${theme.value.actionColor}), ${theme.value.cardColor}`, +)