新增锁屏全屏倒计时:计时中锁屏亮屏即全屏显示日期/时钟/倒计时/任务(v0.16)

This commit is contained in:
XIGE
2026-11-29 12:50:37 +08:00
parent a955318990
commit 0ddd1ec125
10 changed files with 298 additions and 1 deletions

View File

@@ -187,6 +187,10 @@
<string name="sound">结束提示音</string>
<string name="vibrate">振动</string>
<string name="keep_screen_on">计时时保持屏幕常亮</string>
<string name="lock_fullscreen_title">锁屏全屏倒计时</string>
<string name="lock_mode_focus">专注中</string>
<string name="lock_mode_break">休息中</string>
<string name="lock_hint">点按任意处退出 · 倒计时在后台继续</string>
<string name="daily_goal">每日目标</string>
<string name="theme">深浅色</string>
<string name="theme_follow">跟随系统</string>

View File

@@ -17,6 +17,15 @@
<item name="android:colorControlHighlight">@color/ripple_surface</item>
</style>
<!-- 锁屏全屏倒计时页:纯黑底、白色字,不随深浅色主题切换 -->
<style name="LockScreenTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@android:color/black</item>
<item name="android:statusBarColor">@android:color/black</item>
<item name="android:navigationBarColor">@android:color/black</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
</style>
<!--
样式名里的点号会被 aapt 当作隐式父样式(T.Title 的父是 T),
这里必须先声明空的 T,否则资源链接直接报 style/T not found。