From 93b2f264db06b81af70469d795ae525941e63fc1 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 14 Jul 2024 22:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 4a70b194..56a6e4d3 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -608,12 +608,12 @@ function getHistory(){ return h; } // 获取图标地址 -function getIcon(icon) { +function getIcon(icon, change) { if(!icon.includes('.svg')){ return codepath + 'img/' + icon; } let color = getItem('主题颜色',''); - return codepath + 'img/' + icon + (!color?'':'?s='+color+'@js=' + $.toString((color) => { + return codepath + 'img/' + icon + ((!color||!change)?'':'?s='+color+'@js=' + $.toString((color) => { let javaImport = new JavaImporter(); javaImport.importPackage(Packages.com.example.hikerview.utils); with(javaImport) {