3 Commits
v1.2 ... v1.3

5 changed files with 13 additions and 24 deletions

View File

@@ -1,8 +1,12 @@
# 变更记录 # 变更记录
## 2026-11-29 · 项目排序模式序号与置顶;横屏锁屏遮状态栏、排版对称化;版本 1.2 ## 2026-11-29 · 竖屏删「工作中」提示;横屏时间加大、下方文字统一规格并收紧间距(v1.3)
- 同步源码更新 10 个文件(新增/修改 10,删除 0)。 - 竖屏锁屏页删除「工作中/休息中」字样(代码同步移除 tvLockMode 赋值,横竖屏均无该控件)
- 横屏两个时间(倒计时/时钟)96sp → 130sp,尽可能大
- 横屏时间下方文字(左任务名 / 右日期星期)统一为 15sp、同色 #99FFFFFF,与时间距离由 20dp 收紧到 10dp(约一半)
- 右侧日期星期去掉 letterSpacing,与时钟严格左右居中(与左侧倒计时/任务名的居中方式一致)
- 版本 1.2 → 1.3(versionCode 37)
## 2026-11-29 · 项目排序模式(序号+置顶);横屏锁屏遮状态栏、排版对称化(v1.2) ## 2026-11-29 · 项目排序模式(序号+置顶);横屏锁屏遮状态栏、排版对称化(v1.2)

View File

@@ -156,11 +156,6 @@ class LockScreenActivity : AppCompatActivity() {
tvClock.text = clockFmt.format(cal.time) tvClock.text = clockFmt.format(cal.time)
tvCountdown.text = Dates.clock(now) tvCountdown.text = Dates.clock(now)
// 工作中/休息中提示只有竖屏布局有(横屏排版里删掉了),横屏下 findViewById 返回 null
findViewById<TextView>(R.id.tvLockMode)?.text = getString(
if (TimerCore.mode == TimerCore.MODE_FOCUS) R.string.lock_mode_focus else R.string.lock_mode_break
)
val task = if (TimerCore.taskId > 0) Store.task(TimerCore.taskId)?.title else null val task = if (TimerCore.taskId > 0) Store.task(TimerCore.taskId)?.title else null
tvTask.text = task?.takeIf { it.isNotBlank() } ?: getString(R.string.notif_no_task) tvTask.text = task?.takeIf { it.isNotBlank() } ?: getString(R.string.notif_no_task)
} }

View File

@@ -431,6 +431,6 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
} }
companion object { companion object {
const val VERSION = "1.2" const val VERSION = "1.3"
} }
} }

View File

@@ -28,19 +28,19 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:includeFontPadding="false" android:includeFontPadding="false"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="96sp" android:textSize="130sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/tvLockTask" android:id="@+id/tvLockTask"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="10dp"
android:ellipsize="end" android:ellipsize="end"
android:maxWidth="320dp" android:maxWidth="320dp"
android:maxLines="1" android:maxLines="1"
android:textColor="#CCFFFFFF" android:textColor="#99FFFFFF"
android:textSize="17sp" /> android:textSize="15sp" />
</LinearLayout> </LinearLayout>
<!-- 中:细分隔线 --> <!-- 中:细分隔线 -->
@@ -63,15 +63,14 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:includeFontPadding="false" android:includeFontPadding="false"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="96sp" android:textSize="130sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/tvLockDate" android:id="@+id/tvLockDate"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="10dp"
android:letterSpacing="0.08"
android:textColor="#99FFFFFF" android:textColor="#99FFFFFF"
android:textSize="15sp" /> android:textSize="15sp" />
</LinearLayout> </LinearLayout>

View File

@@ -38,15 +38,6 @@
android:textSize="96sp" android:textSize="96sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView
android:id="@+id/tvLockMode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:letterSpacing="0.2"
android:textColor="#66FFFFFF"
android:textSize="13sp" />
<TextView <TextView
android:id="@+id/tvLockTask" android:id="@+id/tvLockTask"
android:layout_width="wrap_content" android:layout_width="wrap_content"