fix(ui): SplashScreen retry button white-on-white in dark mode

The '重试' button used hardcoded `color: #fff` while its background
was `var(--color-primary)`. In dark mode --color-primary resolves to
#fbfbfa (near-white), making the button text invisible.

Switch to `var(--text-inverse)` (which is #1a1a1a in dark mode and
#ffffff in light mode) so the button text is always readable on the
primary background regardless of the active theme.

SplashScreen was the only file in the codebase with this pattern;
all other primary-colored elements either use Ant Design's automatic
colorTextLightSolid handling or a different token combination.
This commit is contained in:
chiguyong 2026-06-21 12:27:56 +08:00
parent 67c0d67262
commit 54be47d9ba
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ defineProps<{
padding: 6px 18px; padding: 6px 18px;
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
color: #fff; color: var(--text-inverse, #ffffff);
background: var(--color-primary, #6366f1); background: var(--color-primary, #6366f1);
border: 1px solid var(--color-primary, #6366f1); border: 1px solid var(--color-primary, #6366f1);
border-radius: 6px; border-radius: 6px;