From 4b796650ff1490e4ea242de54123dbc29064f64d Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 5 Aug 2026 13:52:58 -0600 Subject: [PATCH] =?UTF-8?q?fix(achievement):=20=E6=8B=89=E5=BC=80=E9=9D=92?= =?UTF-8?q?=E9=93=9C=E5=92=8C=E9=BB=84=E9=87=91=E7=9A=84=E9=85=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 青铜和黄金原来都落在橙棕区(色相 30 / 44),扫一眼分不出来。 青铜往红铜偏、黄金往纯黄推,边框色和明暗两套文字色一起调整, 对比度全部保持 4.5:1 以上。顺带修浅色模式白金只有 4.10:1。 --- src/utils/constants.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 0a2559c..7cd2551 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -284,11 +284,13 @@ export const RARITY_LABEL: Record = { platinum: "白金", } -// 边框、色块用的原色:饱和度够高,明暗底上都醒目 +// 边框、色块用的原色:饱和度够高,明暗底上都醒目。 +// 青铜往红偏(色相 23),黄金往纯黄推(色相 47),中间隔开两档亮度, +// 不然两个都落在橙棕区,扫一眼分不出来 export const RARITY_COLOR: Record = { - bronze: "#b87333", + bronze: "#c2703d", silver: "#9fa6b2", - gold: "#e0a300", + gold: "#f2c012", platinum: "#7dd3fc", } @@ -299,16 +301,16 @@ export const RARITY_TEXT_COLOR: Record< Record > = { dark: { - bronze: "#d18d4f", + bronze: "#e08d63", silver: "#b6bcc7", - gold: "#e0a300", + gold: "#f2c012", platinum: "#7dd3fc", }, light: { - bronze: "#9a5b25", + bronze: "#a13d1e", silver: "#6b7280", - gold: "#a37500", - platinum: "#0284c7", + gold: "#8f6f00", + platinum: "#0369a1", }, }