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