更新 'SrcJyPublic.js'

master
src48597962 8 months ago
parent 7c5b9ee14b
commit 93b2f264db
  1. 4
      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) {

Loading…
Cancel
Save