Repository navigation
Releases: Xposed-Modules-Repo/io.github.kelebao.colorosclockseconds
Release list
v1.2.0
v1.2.0(versionCode 249)— 时分秒逐位取色、整串渐变、自定义任务
新增功能
- 6 位数字独立取色:时十位 / 时个位 / 分十位 / 分个位 / 秒十位 / 秒个位各一个颜色。10 颗预设色点、色相·饱和度·明度三条滑杆、调色盘,也能跟随系统文字色。
- 点预览时间展开取色:数字放大、字距拉开,直接点某一位即选中该位;选中位有同色下划线与 2 秒一循环的发光呼吸,其余 5 位降到 30% 不透明度。
- 整串渐变:起点色 → 终点色平滑过渡,6 套渐变预设 + 两端自定义;数字颜色卡分「逐位颜色 | 渐变」两页,停在哪页就是哪种模式(页签即开关)。
- 自定义任务:每小时 / 每天指定时刻,可提前 N 分钟开始、持续 N 分钟,到点自动显示或隐藏秒数;改系统时间、切时区、休眠唤醒后自动重算窗口,另有每 60 秒兜底重算。
- 悬浮时间(长按状态栏时钟):与状态栏相同的渐变配色,改色 1 秒内跟随;等宽数字,秒数跳动时色带不再「游走」。
- 页面标题「时间显秒」改为粉尘点阵:进入时由散点聚拢成字,点一下炸开再聚回。
修复
- ColorOS 上显秒后颜色被系统「洗」回去:写入文本末尾补零宽空格,破坏系统的 HH:mm(:ss) 模式匹配,颜色得以保留。
- 「关了秒再打开,秒数不动」:补上接管分支缺失的刷新计时器。
- 部分机型单击状态栏无反应:修正触摸目标指向。
- 预览渐变与状态栏渐变有色差(仅个别亮色):两边统一到同一套配色函数,并放宽对亮色的过度压暗。
- 个别分辨率下预览数字下半被裁:按实测字形高度反推字号上限,并加运行时兜底。
- ColorOS 15 上预览渐变一个数字一个纯色:预览卡改为自绘渐变(系统绘制路径会对 shader 按字形量化)。
- 单色模式预览冒号偏下:补冒号光学居中(上移 0.11em)。
- 打开自定义任务界面时状态栏消失:修正弹窗窗口标志。
- 空闲时持续空转耗电:自适应节流,判定真正掉色才加速,连续无异常自动停表。
优化与移除
- 移除「流动」功能(含开关与速度滑杆):只保留静态渐变,系统界面 CPU 回到基线(约 7%,流动时最高约 40%)。
- 移除「省电自适应」:省电模式下不再暂停走秒,仅熄屏 / 非交互时降频。
- 移除独立的「小时颜色」卡与独立的「启用渐变」开关,能力并入「数字颜色」两页签。
- 设置页顶部空白带、任务编辑页「动作」行、卡片按压与音效等细节一并打磨。
说明
- 最低支持 Android 10 及以上。
- 已在 ColorOS 15 / 16(Android 15 / 16)真机验证;核心链路只用 AOSP 公开 API,其它厂商理论上同样生效,但尚未逐一真机实测。
- 安装后需重启系统界面(设置页内有「重启 SystemUI」按钮),或执行
adb shell su -c 'killall com.android.systemui'。 - 有问题或建议,欢迎到 GitHub 提 Issue。
v1.2.0 (versionCode 249) — per-digit colors, gradients, scheduled tasks
New
- Independent color for each of the 6 digits (tens/ones of hour, minute and second): 10 preset swatches, hue/saturation/brightness sliders, color picker, or follow the system text color.
- Tap the preview time to edit colors: digits enlarge and get spaced out; tap a digit to select it. The selected digit gets a matching underline plus a 2-second glow-breathing loop, the other five drop to 30% opacity.
- Full-string gradient: start color → end color, 6 presets plus custom endpoints. The color card has two tabs,
Per-digit | Gradient; whichever tab is active is the active mode (the tab is the switch). - Scheduled tasks: hourly or daily at a given time, start N minutes early, run N minutes, and turn seconds on or off automatically. Windows are recomputed after time/timezone changes and on wake, with a 60-second fallback.
- Floating time (long-press the status bar clock): same gradient as the status bar, following color changes within a second; tabular digits keep the band steady while seconds tick.
- The page title is now a dust-particle effect: specks gather into the text on entry and scatter when tapped.
Fixes
- Colors being stripped by the system once seconds are shown (zero-width space appended to defeat the
HH:mm(:ss)pattern match). - Seconds frozen after turning them off and on again (missing refresh timer in the takeover branch).
- Single tap on the status bar doing nothing on some devices (touch target).
- Preview vs. status bar gradient mismatch on a few bright colors (one shared color-adaptation function).
- The lower half of preview digits being clipped at some resolutions (measured ink height plus a runtime fallback).
- Preview gradient quantized to one solid color per digit on ColorOS 15 (the preview now draws the gradient itself).
- Colon sitting too low in per-digit mode (optical centering, 0.11em lift).
- Status bar disappearing while the task editor was open (window flags).
- Idle battery drain (adaptive throttling; the ticker stops when nothing is wrong).
Changed / removed
- Removed the animated "flow" feature: static gradient only; SystemUI CPU back to baseline (~7% of one core vs. up to ~40% while flowing).
- Removed the power-save adaptation: seconds keep ticking in power-save mode; only screen-off/non-interactive throttles.
- The standalone hour-color card and the standalone gradient switch were folded into the two tabs.
Notes
- Requires Android 10 or newer.
- Verified on real devices running ColorOS 15 / 16 (Android 15 / 16). The core path only uses public AOSP APIs, so other vendors should work in theory but have not been verified one by one.
- Restart SystemUI after installing (there is a button in the settings page), or run
adb shell su -c 'killall com.android.systemui'. - Issues and suggestions: please open a GitHub issue.
v1.0.9
v1.0.9(versionCode 10)— 设置页视觉与体验优化
新增功能
- 预览卡秒刻度盘:预览卡新增一圈刻度盘,颜色采用深绿、深青、深海军蓝、深金等沉稳配色,随时间缓缓流动变化;深色模式下自动切换为更亮的配色,依然清晰可见。
优化
- 小时颜色色块光晕更亮:色块呼吸时,最亮的一下比之前更亮、更明显。
- 关闭小时颜色时装饰弧不再消失:右下角三条装饰弧现在始终显示;关闭小时颜色时色块只是变淡,不再有弧线透上来、像是盖在色块上的情况。
- 读屏(TalkBack)更好用:开启手机读屏后,小时颜色的每个色块会念出颜色名称和色号(例如「红色 #F44336」),选中哪个也会播报;设置页里的按钮也都能被正确识别为可点击。
- 更省电、更流畅:设置页滚动到预览卡不可见时,自动停止它的动画刷新以省电;同时修复了深色模式下刻度盘有一段颜色几乎看不见的问题。
说明
- 最低支持 Android 10 及以上。
- 主要在 ColorOS(一加)上做过真机验证;其他品牌手机走的是通用适配,逻辑上兼容,但没有逐一实测。
- 有问题或建议,欢迎到 GitHub 提 Issue。
v1.0.9 (versionCode 10) — Settings UI & Experience Polish
New Features
- Second-tick dial on the preview card: The preview card now shows a ring of tick marks in calm colors (deep green, deep teal, deep navy, deep gold) that slowly shift over time. In dark mode it switches to a brighter palette so it stays clearly visible.
Improvements
- Brighter glow on hour-color swatches: The breathing glow on the color swatches now peaks brighter and more noticeable.
- Decorative arcs stay when hour color is off: The three decorative arcs in the corner now always stay visible. When hour color is turned off, the swatches just dim — no more arcs showing through them.
- Better screen-reader support: With a screen reader, each hour-color swatch now announces its name and hex code (e.g. "红色 #F44336"), and the selected one is announced too. Buttons on the settings page are now properly exposed as actionable.
- More power-efficient and smoother: The preview animation auto-pauses when scrolled off-screen, saving battery. Also fixed a dark-mode issue where part of the dial was nearly invisible.
Notes
- Requires Android 10 or later.
- Primarily verified on ColorOS (OnePlus); other brands use generic adaptation and should work, but aren't individually tested.
- Issues and suggestions are welcome on GitHub.
Full Changelog: https://github.com/kelebao/ClockSeconds/blob/main/CHANGELOG.md
v1.0.8
v1.0.8 (versionCode 9)
安全加固:配置接收器改用 signature 级自定义权限,阻止任意应用广播代写 Settings.Secure/Global。
新增:状态栏时间识别名「自动检测」一键配置;手填识别名二次校验。
优化:自动检测移入设置弹窗作为主操作;移除浮窗日期行;措辞「时钟」→「时间」。
Security: config receiver now requires a signature-level custom permission, blocking arbitrary apps from broadcasting writes into Settings.Secure/Global.
New: one-tap auto-detect for the status bar time view name; confirmation dialog for suspicious manual entries.
Improved: auto-detect moved into the settings dialog as the primary action; floating-window date row removed; wording unified to "time".
Full Changelog: https://github.com/kelebao/ClockSeconds/blob/main/CHANGELOG.md
v1.0.7
v1.0.7 (versionCode 8)
体验与健壮性增强:下拉磁贴一键开关、浮窗位置与尺寸记忆、浮窗日期显示、浮窗双击切换显秒、省电模式自适应、时钟识别可配置、模块自保护。
Experience & Robustness: Quick Settings tile, floating window memory, floating window date, double-tap floating window, power-save adaptive, configurable clock ID, self-protection.
Full Changelog: https://github.com/kelebao/ClockSeconds/blob/main/CHANGELOG.md
v1.0.6
时钟显秒(Clock Seconds)v1.0.6
修复
- 小米 / 其它厂商状态栏时间消失(#2):此前「固定占位宽度」逻辑对所有机型无条件执行,在
MiuiClock(wrap_content且未重写onMeasure)上会把时间文本裁掉。现在宽度锁定只在 ColorOS 系(OPPO / 一加 / realme)生效,且只设minWidth、不再设maxWidth——minWidth已足够避免显秒开关引起的横向移位,maxWidth在字体测量有偏差时会裁切文本。其它厂商不再对时钟视图做任何宽度约束。 - 该问题在 HyperOS 4 / Android 17(小米 12S Ultra)上复现,感谢 @1332514136 提供的高质量定位分析。
说明
- 仅作用域:
com.android.systemui - 最低支持:Android 10
- 签名证书 SHA-256 与 v1.0.5 一致(
2850e82a…),可直接覆盖升级
Clock Seconds v1.0.6
Fixed
- Clock disappearing on Xiaomi / other vendors (#2): the "fixed placeholder width" logic used to run unconditionally on every vendor; on
MiuiClock(which iswrap_contentand does not overrideonMeasure) it clipped the clock text away. The width lock is now applied only on ColorOS-family devices (OPPO / OnePlus / realme), and it sets onlyminWidth, no longermaxWidth—minWidthalone already prevents the horizontal shift when seconds are toggled, whilemaxWidthclips text whenever font measurement is slightly off. Other vendors get no width constraint at all. - Reported on HyperOS 4 / Android 17 (Xiaomi 12S Ultra); thanks to @1332514136 for the excellent root-cause analysis.
Notes
- Scope only:
com.android.systemui - Minimum supported: Android 10
- Same signing certificate SHA-256 as v1.0.5 (
2850e82a…), so it installs over the previous version without uninstalling
v1.0.5
时钟显秒(Clock Seconds)v1.0.5
新增
- 应用内更新检查:打开设置页自动检测新版本(可在设置中关闭),发现新版本时弹窗提醒,一键跳转 Releases 页;也可手动点击「检查更新」
- 设置页「关于模块」:显示版本号,并提供 GitHub 源码与开放源代码(Xposed API,Apache-2.0)入口
- 获取更新入口:设置页可直接打开 Releases 页下载最新版
优化
- 模块介绍精简(21 语言):移除「真机验证 / 兼容厂商 / 最低 Android 10」等冗余描述,只保留功能说明,模块卡片更清爽
说明
- 仅作用域:
com.android.systemui - 最低支持:Android 10
- 签名证书 SHA-256 与 v1.0.4 一致(
2850e82a…),可直接覆盖升级,无需卸载
Clock Seconds v1.0.5
New
- In-app update check: the settings page automatically checks for a new version on open (can be turned off), shows a dialog when one is found and takes you to the Releases page in one tap; there is also a manual "Check for updates" button
- "About" section in settings: shows the version and provides entries to the GitHub source and open-source licenses (Xposed API, Apache-2.0)
- "Get update" entry: open the Releases page directly from the settings page
Improved
- Shorter module description (21 languages): removed the redundant "verified on device / vendor compatibility / minimum Android 10" sentence, keeping only the feature description, so the module card stays clean
Notes
- Scope only:
com.android.systemui - Minimum supported: Android 10
- Same signing certificate SHA-256 as v1.0.4 (
2850e82a…), so it installs over the previous version without uninstalling
v1.0.4
时钟显秒(Clock Seconds)v1.0.4
新增
- 小时十位数标红:如 13 的「1」、05 的「0」,分钟与秒保持系统原色;无论显秒开启或关闭均保持红色
- 全厂商适配:移除 ColorOS 单系统限制,基于标准 API 与识别规则,尝试支持小米、荣耀、vivo、一加等所有厂商
- 界面 21 种语言:简体中文、English、繁體中文、日本語、한국어、Türkçe、Русский、Tiếng Việt、ไทย、Deutsch、Español、Français、Українська、Polski、Português (Brasil)、فارسی、العربية、Bahasa Indonesia、Italiano、Ελληνικά、ქართული,自动跟随系统语言
修复
- 点击时钟不切换:ColorOS 通知面板拦截状态栏区域触摸,改用全局 View.dispatchTouchEvent 边界命中判定,不消费事件,下拉通知栏照常
- 关显秒时红色失效(TextUtils.equals 不比较 Span 导致标红被跳过)
说明
- 仅作用域:
com.android.systemui - 最低支持:Android 10
- 已在 ColorOS 15(一加 Ace 2)真机验证
Clock Seconds v1.0.4
New
- Red hour tens digit: e.g. the
1in13, the0in05; minutes and seconds keep the system color. The red stays whether seconds are shown or not - All-vendor support: removed the ColorOS-only limit; based on standard APIs and recognition rules, trying to support Xiaomi, Honor, vivo, OnePlus and every other vendor
- 21 UI languages: 简体中文, English, 繁體中文, 日本語, 한국어, Türkçe, Русский, Tiếng Việt, ไทย, Deutsch, Español, Français, Українська, Polski, Português (Brasil), فارسی, العربية, Bahasa Indonesia, Italiano, Ελληνικά, ქართული — automatically follows the system language
Fixed
- Tapping the clock did not toggle: ColorOS's notification panel intercepts touches in the status bar area; switched to a global
View.dispatchTouchEventbounds hit-test that consumes no events, so pulling down the notification shade still works as usual - Red highlight lost when seconds were off (
TextUtils.equalsdoes not compare Spans, so the red span was skipped)
Notes
- Scope only:
com.android.systemui - Minimum supported: Android 10
- Verified on a real device running ColorOS 15 (OnePlus Ace 2)
4-1.0.3
ColorOS 时钟显秒 v1.0.3
让状态栏(左上角)时钟显示秒,并支持单击时钟切换显秒开关。适配 ColorOS 15 及以上(OPPO / 一加 / 真我)。
本版重要变更(重写,修复崩溃)
- 彻底重写,改用 legacy Xposed API(
de.robv.android.xposed:api:82),只 hookcom.android.systemui的时钟TextView(setText之后 /onDraw之前覆写文本),不修改系统内部状态,因此启用后不再触发 LSPosed 安全模式(v1.0.1 / v1.0.2 因 hook 私有类导致 SystemUI 崩溃的根因已消除)。 - 仅作用域 系统界面(
com.android.systemui),不再 hook 设置进程。 - 点击 / 长按时钟切换显秒,状态存
Settings.Secure,默认开启。 - 新增应用图标(状态栏左侧的模块图标为蓝发头像 + 蓝色背景)。
✅ 已在 ColorOS 15 真机实测:状态栏显秒、单击切换、下拉通知栏均正常,且 LSPosed 不会进入安全模式。
安装
- 安装
io.github.kelebao.colorosclockseconds_1.0.3.apk - 在 LSPosed 中启用本模块
- 作用域勾选:
com.android.systemui - 重启 SystemUI 或重启设备
配置页从 LSPosed 管理器打开,不会在桌面生成图标。
校验
APK 签名证书 SHA-256:2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e
v1.0.2
ColorOS 时钟显秒 v1.0.2(止血版)
让状态栏(左上角)时钟显示秒,并支持单击/长按时钟切换显秒开关。适配 ColorOS 15 及以上(OPPO / 一加 / 真我)。
本版修复
- 修复 ColorOS 15 上启用模块即触发 LSPosed 安全模式(SystemUI 崩溃)的问题
- 原生去时限路径仅在 ColorOS 17+ 启用;15/16 强制走自渲染路径
- 全局异常兜底 + 拦截器回退,确保模块不会导致系统崩溃
安装
- 安装 APK
- 在 LSPosed 启用本模块
- 作用域勾选
com.android.systemui与com.android.settings - 重启这两个进程或重启设备
配置页从 LSPosed 管理器打开,不会在桌面生成图标。
校验
APK 签名证书 SHA-256:
2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e
v1.0.1
ColorOS 时钟显秒 v1.0.1
让状态栏(左上角)时钟显示秒,并支持单击时钟切换显秒开关。适配 ColorOS 15 及以上(OPPO / 一加 / 真我)。
本版变更
- 包名变更为
io.github.kelebao.colorosclockseconds(满足 LSPosed 模块仓库收录要求) - 已在 ColorOS 15 真机验证可用:状态栏显秒、单击切换、下拉通知栏均正常
安装
- 安装 APK
- 在 LSPosed 中启用本模块
- 作用域勾选:
com.android.systemui与com.android.settings - 重启这两个进程或重启设备
配置页从 LSPosed 管理器打开,不会在桌面生成图标。
注意
⚠️ 本版包名与 v1.0.0 不同,升级前请先卸载旧版本
校验
APK 签名证书 SHA-256:2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e