完成任务删除线只画任务名;置顶改圆圈箭头图标;饼图中心删小字居中;悬浮窗权限已开启不可点;每日目标可输入去上限,版本 1.6

This commit is contained in:
XIGE
2026-11-29 23:09:39 +08:00
parent 1d355693be
commit e7089ae76b
6 changed files with 190 additions and 51 deletions

View File

@@ -62,9 +62,10 @@ object Prefs {
set(v) = sp.edit().putBoolean("lock_fullscreen", v).apply()
// ---- 目标 ----
// 无上限:输入多大存多大(下限 15 防止误输 0/负数把目标显示搞崩)
var dailyGoalMinutes: Int
get() = sp.getInt("daily_goal", 120)
set(v) = sp.edit().putInt("daily_goal", v.coerceIn(15, 720)).apply()
set(v) = sp.edit().putInt("daily_goal", v.coerceAtLeast(15)).apply()
/** 0 跟随系统 / 1 浅色 / 2 深色 */
var themeMode: Int