箭头缩至与圆圈同高;统计页分布卡移到趋势前(v0.12)

This commit is contained in:
XIGE
2026-11-29 10:54:00 +08:00
parent 86d2f4cbaa
commit 39105ee1e2
4 changed files with 22 additions and 18 deletions

View File

@@ -87,8 +87,8 @@ class TaskAdapter(
// 标题右侧的属性图标,未完成与已完成都显示:
// 重要度圆圈数字(③ 高 / ② 中 / ① 普通,颜色与紧急度同色系)→
// 紧急度五角星 → 随时上箭头。
// 各字形在字体里的字面尺寸不同:五角星 0.95、圆圈数字字面偏大缩到 0.85、
// 上箭头字面偏小放到 1.1,三者视觉高度一致,不再一宽一高。
// 各字形在字体里的字面尺寸不同:以圆圈数字 0.85 为基准,
// 上箭头与圆圈同高;五角星 0.95 不作参照
val title = SpannableStringBuilder(task.title)
val (badge, badgeColor) = when (task.priority) {
@@ -123,7 +123,7 @@ class TaskAdapter(
android.text.style.ForegroundColorSpan(ctx.col(R.color.brand)),
title.length - 2, title.length, 0
)
title.setSpan(RelativeSizeSpan(1.1f), title.length - 2, title.length, 0)
title.setSpan(RelativeSizeSpan(0.85f), title.length - 2, title.length, 0)
}
tvTitle.text = title