修复了新增日历本颜色不对的问题。

Signed-off-by: Yang Yongquan <i@yangyq.net>
This commit is contained in:
2026-09-15 23:03:58 +08:00
parent c53456a2e1
commit 5ab9648b5a
8 changed files with 127 additions and 11 deletions
+1 -1
View File
@@ -725,7 +725,7 @@ class CalendarDataBridge {
}
s.name = `${acc.name} · ${name}`;
let color: string = i < acc.calendarColors.length ? AccountStore.normalizeColor(acc.calendarColors[i]) : '';
s.color = color !== '' ? color : BookPalette.colorFor(i);
s.color = color !== '' ? color : BookPalette.colorForHref(acc.calendarHrefs[i]);
s.href = acc.calendarHrefs[i];
s.writable = true;
result.push(s);