fix(icon): 添\u52a0 getShortXIconDrawable 方法和占位符,\u4fee\u590d\u56fe\u6807\u4e0d\u663e\u793a

- 补\u5145\u7f3a\u5931的 getShortXIconDrawable() 方法
- 图\u6807\u83b7\u53d6\u5931\u8d25\u65f6\u663e\u793a\u6d45\u8272\u5360\u4f4d\u7b26
This commit is contained in:
Hermes
2026-04-20 17:59:33 +08:00
parent 5036f48772
commit f13f3268c3
2 changed files with 20 additions and 1 deletions

View File

@@ -436,6 +436,15 @@ FloatBallAppWM.prototype.resolveShortXDrawable = function(name, tintHex) {
return null;
};
FloatBallAppWM.prototype.getShortXIconDrawable = function(name) {
try {
return this.resolveShortXDrawable(name, null);
} catch (e) {
safeLog(this.L, 'w', "getShortXIconDrawable failed: " + String(e));
return null;
}
};
FloatBallAppWM.prototype.getShortXIconCatalog = function(forceReload) {
if (!forceReload && this._shortxIconCatalog) return this._shortxIconCatalog;
var out = [];