- abyssBlockPercent 从 22%→10% 改为 34%→4%;4 个周期为 34/24/14/4, 相邻周期约差 10 个百分点,周期边界一眼可辨。 - 第一个周期明显更深,最后一个周期接近底色;主日历与客户自助页共用该函数, 两处同步生效。 - 版本 1.11.4;README 的深渊说明同步为 34%→4%。
This commit is contained in:
@@ -664,11 +664,11 @@ func assigneeStrip(tickets []Ticket) []string {
|
||||
return out
|
||||
}
|
||||
|
||||
// abyssBlockPercent 深渊色块浓度:第一个周期 22%,之后每个周期依次减淡,
|
||||
// 最后一个周期 10%(周期数大于 1 时线性过渡)。
|
||||
// abyssBlockPercent 深渊色块浓度:第一个周期 34%,之后每个周期依次减淡,
|
||||
// 最后一个周期 4%(周期数大于 1 时线性过渡);跨度比 v1.11.3 的 22%→10% 明显更大。
|
||||
func abyssBlockPercent(idx, total int) int {
|
||||
if total <= 1 {
|
||||
return 22
|
||||
return 34
|
||||
}
|
||||
if idx < 0 {
|
||||
idx = 0
|
||||
@@ -676,9 +676,9 @@ func abyssBlockPercent(idx, total int) int {
|
||||
if idx >= total {
|
||||
idx = total - 1
|
||||
}
|
||||
pct := 22 - (idx*12)/(total-1)
|
||||
if pct < 10 {
|
||||
pct = 10
|
||||
pct := 34 - (idx*30)/(total-1)
|
||||
if pct < 4 {
|
||||
pct = 4
|
||||
}
|
||||
return pct
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user