已选任务文案;项目颜色行可横滑;通知计时放大与操作按钮圆角背景

This commit is contained in:
XIGE
2026-11-28 08:06:55 +08:00
parent 9bcf4e5e8a
commit 9923163d7d
6 changed files with 32 additions and 9 deletions

View File

@@ -1,5 +1,9 @@
# 变更记录
## 2026-11-28 · 已选任务文案;项目颜色行可横滑;通知计时放大与操作按钮圆角背景
- 同步源码更新 5 个文件(新增/修改 5,删除 0)。
## 2026-11-28 · v0.4.2:弹层精简、环图加粗、通知图标常驻、统计标题统一
- **选任务弹层**:删除第一步「先选项目…」与第二步「选中的任务…」两行提示;第一步项目行隐藏左侧色点并清零文字缩进,名称贴左对齐。

View File

@@ -324,7 +324,7 @@ class FocusFragment : Fragment(R.layout.fragment_focus) {
tvTask.text = task.title
val projectName = project?.name ?: getString(R.string.inbox)
tvTaskMeta.text = "$projectName · ${task.focusMinutes} 分钟 · 已完成 ${task.donePomodoros} 次"
tvTaskAction.text = getString(R.string.pick_task)
tvTaskAction.text = getString(R.string.task_selected)
}
// ------------------------------------------------------------------ 手势

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 通知里的暂停/结束按钮:与首页开始键两侧的圆形图标按钮同款底 -->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<solid android:color="@color/surface_alt" />
<stroke android:width="1dp" android:color="@color/card_stroke" />
</shape>

View File

@@ -40,11 +40,12 @@
android:id="@+id/notifChrono"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:layout_marginTop="1dp"
android:countDown="true"
android:includeFontPadding="false"
android:textSize="13sp"
android:textColor="?android:attr/textColorSecondary" />
android:textSize="16sp"
android:textStyle="bold"
android:textColor="?android:attr/textColorPrimary" />
</LinearLayout>
<ImageButton
@@ -52,7 +53,7 @@
android:layout_width="44dp"
android:layout_height="44dp"
android:padding="10dp"
android:background="@android:color/transparent"
android:background="@drawable/bg_notif_action"
android:scaleType="fitCenter"
android:src="@drawable/ic_pause"
android:tint="?android:attr/textColorPrimary"
@@ -63,7 +64,7 @@
android:layout_width="44dp"
android:layout_height="44dp"
android:padding="10dp"
android:background="@android:color/transparent"
android:background="@drawable/bg_notif_action"
android:scaleType="fitCenter"
android:src="@drawable/ic_stop"
android:tint="?android:attr/textColorPrimary"

View File

@@ -52,12 +52,23 @@
android:text="@string/project_color"
style="@style/T.Section" />
<LinearLayout
android:id="@+id/colorRow"
<!-- 八色圆点横向可滑,末位颜色不再被弹层右边缘裁掉 -->
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal" />
android:clipToPadding="false"
android:paddingEnd="20dp"
android:scrollbars="none">
<LinearLayout
android:id="@+id/colorRow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="4dp"
android:paddingBottom="4dp" />
</HorizontalScrollView>
<LinearLayout
android:layout_width="match_parent"

View File

@@ -31,6 +31,7 @@
<string name="current_task">当前任务</string>
<string name="no_task">未选择任务 · 直接开始也可以</string>
<string name="pick_task">选择任务</string>
<string name="task_selected">已选任务</string>
<string name="pick_project">选择项目</string>
<string name="pick_back">返回上一步</string>
<string name="clear_task">不选择任务,直接开始</string>