通知按钮留边距;选任务第一步标题贴左;项目操作弹层圆角;环图加粗;改名时间简史与 Things 蓝图标
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user