已选任务文案;项目颜色行可横滑;通知计时放大与操作按钮圆角背景
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# 变更记录
|
# 变更记录
|
||||||
|
|
||||||
|
## 2026-11-28 · 已选任务文案;项目颜色行可横滑;通知计时放大与操作按钮圆角背景
|
||||||
|
|
||||||
|
- 同步源码更新 5 个文件(新增/修改 5,删除 0)。
|
||||||
|
|
||||||
## 2026-11-28 · v0.4.2:弹层精简、环图加粗、通知图标常驻、统计标题统一
|
## 2026-11-28 · v0.4.2:弹层精简、环图加粗、通知图标常驻、统计标题统一
|
||||||
|
|
||||||
- **选任务弹层**:删除第一步「先选项目…」与第二步「选中的任务…」两行提示;第一步项目行隐藏左侧色点并清零文字缩进,名称贴左对齐。
|
- **选任务弹层**:删除第一步「先选项目…」与第二步「选中的任务…」两行提示;第一步项目行隐藏左侧色点并清零文字缩进,名称贴左对齐。
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ class FocusFragment : Fragment(R.layout.fragment_focus) {
|
|||||||
tvTask.text = task.title
|
tvTask.text = task.title
|
||||||
val projectName = project?.name ?: getString(R.string.inbox)
|
val projectName = project?.name ?: getString(R.string.inbox)
|
||||||
tvTaskMeta.text = "$projectName · ${task.focusMinutes} 分钟 · 已完成 ${task.donePomodoros} 次"
|
tvTaskMeta.text = "$projectName · ${task.focusMinutes} 分钟 · 已完成 ${task.donePomodoros} 次"
|
||||||
tvTaskAction.text = getString(R.string.pick_task)
|
tvTaskAction.text = getString(R.string.task_selected)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------ 手势
|
// ------------------------------------------------------------------ 手势
|
||||||
|
|||||||
6
src/main/res/drawable/bg_notif_action.xml
Normal file
6
src/main/res/drawable/bg_notif_action.xml
Normal 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>
|
||||||
@@ -40,11 +40,12 @@
|
|||||||
android:id="@+id/notifChrono"
|
android:id="@+id/notifChrono"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="2dp"
|
android:layout_marginTop="1dp"
|
||||||
android:countDown="true"
|
android:countDown="true"
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:textSize="13sp"
|
android:textSize="16sp"
|
||||||
android:textColor="?android:attr/textColorSecondary" />
|
android:textStyle="bold"
|
||||||
|
android:textColor="?android:attr/textColorPrimary" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
@@ -52,7 +53,7 @@
|
|||||||
android:layout_width="44dp"
|
android:layout_width="44dp"
|
||||||
android:layout_height="44dp"
|
android:layout_height="44dp"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:background="@android:color/transparent"
|
android:background="@drawable/bg_notif_action"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_pause"
|
android:src="@drawable/ic_pause"
|
||||||
android:tint="?android:attr/textColorPrimary"
|
android:tint="?android:attr/textColorPrimary"
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
android:layout_width="44dp"
|
android:layout_width="44dp"
|
||||||
android:layout_height="44dp"
|
android:layout_height="44dp"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:background="@android:color/transparent"
|
android:background="@drawable/bg_notif_action"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_stop"
|
android:src="@drawable/ic_stop"
|
||||||
android:tint="?android:attr/textColorPrimary"
|
android:tint="?android:attr/textColorPrimary"
|
||||||
|
|||||||
@@ -52,12 +52,23 @@
|
|||||||
android:text="@string/project_color"
|
android:text="@string/project_color"
|
||||||
style="@style/T.Section" />
|
style="@style/T.Section" />
|
||||||
|
|
||||||
<LinearLayout
|
<!-- 八色圆点横向可滑,末位颜色不再被弹层右边缘裁掉 -->
|
||||||
android:id="@+id/colorRow"
|
<HorizontalScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
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
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
<string name="current_task">当前任务</string>
|
<string name="current_task">当前任务</string>
|
||||||
<string name="no_task">未选择任务 · 直接开始也可以</string>
|
<string name="no_task">未选择任务 · 直接开始也可以</string>
|
||||||
<string name="pick_task">选择任务</string>
|
<string name="pick_task">选择任务</string>
|
||||||
|
<string name="task_selected">已选任务</string>
|
||||||
<string name="pick_project">选择项目</string>
|
<string name="pick_project">选择项目</string>
|
||||||
<string name="pick_back">返回上一步</string>
|
<string name="pick_back">返回上一步</string>
|
||||||
<string name="clear_task">不选择任务,直接开始</string>
|
<string name="clear_task">不选择任务,直接开始</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user