From 4704cbc09b25c5d5ace4d4273f2e1b2c32f621bd Mon Sep 17 00:00:00 2001 From: plainheart Date: Tue, 8 Oct 2024 10:55:40 +0800 Subject: [PATCH] fix(theme): fix legend page text color in dark mode. --- src/theme/dark.ts | 3 +++ test/legend.html | 28 +++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/theme/dark.ts b/src/theme/dark.ts index 2fa611a693..78e97bf44e 100644 --- a/src/theme/dark.ts +++ b/src/theme/dark.ts @@ -75,6 +75,9 @@ const theme = { legend: { textStyle: { color: contrastColor + }, + pageTextStyle: { + color: contrastColor } }, textStyle: { diff --git a/test/legend.html b/test/legend.html index 74c448a190..e5839d41e5 100644 --- a/test/legend.html +++ b/test/legend.html @@ -72,6 +72,8 @@

Scroll vertically, left: 10, top: 'center', position: 'start', height: 50% (
+

Legend page text color should be light in dark mode

+
+ - \ No newline at end of file +