From 50701bde0a9ebe8b4c7f0db48ba563991877fe83 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 19 十月 2024 15:19:51 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/tool.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js
index 05c3f3c..b7de3e7 100644
--- a/zy-acs-flow/src/map/tool.js
+++ b/zy-acs-flow/src/map/tool.js
@@ -304,16 +304,16 @@
     const style = new PIXI.TextStyle({
         fontFamily: 'Roboto',
         fontSize: 12,
-        fill: '#000000',
+        fill: themeMode === 'light' ? '#000' : '#eee',
     });
     const text = new PIXI.Text(`${sprite.data?.type} ${sprite.data?.no}`, style);
     const background = new PIXI.Graphics();
     // shadow
-    background.beginFill(0x000000, 0.1);
+    background.beginFill(themeMode === 'light' ? '#000' : '#eee', 0.1);
     background.drawRoundedRect(4, 4, text.width + 6, text.height + 6, 4);
     background.endFill();
     // background
-    background.beginFill(0xffffff, 1);
+    background.beginFill(themeMode === 'light' ? '#fff' : '#333', 1);
     background.drawRoundedRect(0, 0, text.width + 8, text.height + 8, 4);
     background.endFill();
 

--
Gitblit v1.9.1