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) {