提交 59b624b3 编写于 作者: AndroidLeaves's avatar AndroidLeaves

update

上级 eb18854e
...@@ -109,6 +109,8 @@ class Widget extends BaseWidget { ...@@ -109,6 +109,8 @@ class Widget extends BaseWidget {
nicknameColor = () => this.getValueByKey('nicknameColor'); nicknameColor = () => this.getValueByKey('nicknameColor');
jvColor = () => this.getValueByKey('jvColor');
constructor(scriptName) { constructor(scriptName) {
super(scriptName); super(scriptName);
this.defaultConfig.refreshInterval = '60'; this.defaultConfig.refreshInterval = '60';
...@@ -309,7 +311,7 @@ class Widget extends BaseWidget { ...@@ -309,7 +311,7 @@ class Widget extends BaseWidget {
jvStack.setPadding(2, 8, 2, 8); jvStack.setPadding(2, 8, 2, 8);
textSpan = jvStack.addText(`京享值 ${this.userInfo.jvalue}`); textSpan = jvStack.addText(`京享值 ${this.userInfo.jvalue}`);
textSpan.textOpacity = 0.9; textSpan.textOpacity = 0.9;
textSpan.textColor = new Color('#000000'); textSpan.textColor = this.jvColor();
textSpan.font = Font.regularSystemFont(10); textSpan.font = Font.regularSystemFont(10);
jvStack.cornerRadius = 10; jvStack.cornerRadius = 10;
} }
......
...@@ -1940,7 +1940,7 @@ class BaseWidget { ...@@ -1940,7 +1940,7 @@ class BaseWidget {
settingItems = [], settingItems = [],
onItemClick, onItemClick,
onCheckedChange, onCheckedChange,
authorAvatar = `${remoteRoot}/img/ic_avatar_lsp.jpg`, authorAvatar = `${remoteRoot}/img/ic_pikachu_4.png`,
authorName = '杂货万事屋', authorName = '杂货万事屋',
authorDesc = '点击查看/添加Scriptable小组件订阅', authorDesc = '点击查看/添加Scriptable小组件订阅',
homePage = 'https://gitcode.net/enoyee/scriptable/-/tree/master', homePage = 'https://gitcode.net/enoyee/scriptable/-/tree/master',
...@@ -2364,7 +2364,7 @@ class BaseWidget { ...@@ -2364,7 +2364,7 @@ class BaseWidget {
<form class="list__body" action="javascript:void(0);"> <form class="list__body" action="javascript:void(0);">
<label id="author" class="form-item-auth form-item--link"> <label id="author" class="form-item-auth form-item--link">
<div class="form-label"> <div class="form-label">
<img class="form-label-author-avatar normal-loading" src="${authorAvatar}"/> <img class="form-label-author-avatar" src="${authorAvatar}"/>
<div> <div>
<div class="form-item-auth-name">${authorName}</div> <div class="form-item-auth-name">${authorName}</div>
<div class="form-item-auth-desc">${authorDesc}</div> <div class="form-item-auth-desc">${authorDesc}</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册