Skip to content

Commit 01f7c36

Browse files
author
dompling
committed
fix
1 parent 5b81420 commit 01f7c36

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Scripts/birthday.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ const heightMode = Device.model() === "iPad" ? 100 : 380; // 中号组件图片
1616
// @组件代码开始
1717
class Widget extends DmYY {
1818
constructor(arg) {
19-
super(arg, {
20-
lightBgColor: "#2581f2",
21-
darkBgColor: "#2581f2",
22-
darkColor: "#fff",
23-
lightColor: "#fff",
24-
});
19+
super(arg);
2520
this.en = "birthday";
2621
this.name = "破壳日";
2722
this.LEFT_IMG_KEY = `${this.cacheImage}/avatar`;
@@ -379,7 +374,7 @@ class Widget extends DmYY {
379374

380375
if (dayImage) {
381376
subWidget.addSpacer(2);
382-
let dayIcon = subWidget.addImage(dayImage.image);
377+
let dayIcon = subWidget.addImage(SFSymbol.named(dayImage).image);
383378
dayIcon.imageSize = new Size(mainTextSize + 1, mainTextSize + 1);
384379
dayIcon.tintColor = new Color("#1ab6f8");
385380
}

0 commit comments

Comments
 (0)