通知按钮留边距;选任务第一步标题贴左;项目操作弹层圆角;环图加粗;改名时间简史与 Things 蓝图标

This commit is contained in:
XIGE
2026-11-28 08:29:47 +08:00
parent a7f3ec3425
commit c5d9e3eb65
12 changed files with 150 additions and 43 deletions

View File

@@ -415,6 +415,7 @@ class FocusFragment : Fragment(R.layout.fragment_focus) {
val root = layoutInflater.inflate(R.layout.sheet_pick_task, null)
val tvTitle = root.findViewById<TextView>(R.id.pickTitle)
val tvStep = root.findViewById<TextView>(R.id.pickStep)
val titleBox = root.findViewById<LinearLayout>(R.id.pickTitleBox)
val tvHint = root.findViewById<TextView>(R.id.pickHint)
tvHint.visibility = View.GONE // 两步都只留标题与列表,不再占一行说明文字
val btnBack = root.findViewById<ImageView>(R.id.pickBack)
@@ -456,6 +457,7 @@ class FocusFragment : Fragment(R.layout.fragment_focus) {
val project = Store.project(projectId)
tvTitle.text = project?.name ?: getString(R.string.inbox)
tvStep.text = getString(R.string.pick_step, 2)
(titleBox.layoutParams as LinearLayout.LayoutParams).marginStart = dpi(10f)
btnBack.visibility = View.VISIBLE
btnClear.visibility = View.VISIBLE
list.removeAllViews()
@@ -493,7 +495,9 @@ class FocusFragment : Fragment(R.layout.fragment_focus) {
fun showProjects() {
tvTitle.text = getString(R.string.pick_project)
tvStep.text = getString(R.string.pick_step, 1)
btnBack.visibility = View.INVISIBLE
// 第一步没有返回键,连占位一起收掉,标题与步骤贴左边缘
(titleBox.layoutParams as LinearLayout.LayoutParams).marginStart = 0
btnBack.visibility = View.GONE
btnClear.visibility = View.GONE
list.removeAllViews()
val currentPid = if (TimerCore.taskId > 0) TimerCore.projectId else -1L