From 03985fcbf92a3a8875e7fbcd91572f876e74d1bf Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 28 Sep 2026 18:45:59 +0800 Subject: [PATCH] =?UTF-8?q?style(=E9=A2=98=E7=9B=AE):=20=E6=9A=97=E8=89=B2?= =?UTF-8?q?=E4=B8=8B=E3=80=8C=E5=81=9A=E5=AE=8C=E3=80=8D=E7=9A=84=E9=A2=98?= =?UTF-8?q?=E5=8F=B7=E8=8A=AF=E7=89=87=E6=8D=A2=E6=88=90=E6=B7=B1=E8=89=B2?= =?UTF-8?q?=E5=AD=97=E2=80=94=E2=80=94=E6=B5=85=E8=96=84=E8=8D=B7=E7=BB=BF?= =?UTF-8?q?=E5=BA=95=E4=B8=8A=E7=9A=84=E7=99=BD=E5=AD=97=E5=87=A0=E4=B9=8E?= =?UTF-8?q?=E7=9C=8B=E4=B8=8D=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/problem/components/ProblemChips.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/src/oj/problem/components/ProblemChips.vue b/apps/web/src/oj/problem/components/ProblemChips.vue index 8fc0430..8888d99 100644 --- a/apps/web/src/oj/problem/components/ProblemChips.vue +++ b/apps/web/src/oj/problem/components/ProblemChips.vue @@ -22,6 +22,12 @@ const props = defineProps<{ }>() const theme = useThemeVars() +/** + * 「做完」的实心绿上用什么字色。暗色主题的成功色是浅薄荷绿,白字几乎看不见 —— + * 和 Naive 自己的主按钮一样,暗色下换深色字 + */ +const isDark = useDark() +const doneText = computed(() => (isDark.value ? "rgba(0, 0, 0, 0.85)" : "#fff")) const STATUS_TEXT = { done: "做完了", tried: "做过,还没对", none: "还没做" } as const @@ -94,7 +100,7 @@ watch( } .chip.done { - color: #fff; + color: v-bind(doneText); background-color: v-bind("theme.successColor"); }