Install
openclaw skills install nexus-wage-widget工作日薪看板 Pro — 实时工资计算 + 番茄钟专注的玻璃质感 HTML widget。 这是用户的个人生产力工具,存在于 references\daily_wage.html。 当用户提及"工作日薪"、"工资看板"、"daily_wage"、"番茄钟"、"专注时刻"、桌面 widget 或玻璃质感卡片时,必须使用本 skill。 本 skill 包含该文件的完整架构、视觉规范、交互逻辑和核心代码,任何 bot 都能据此准确还原。
openclaw skills install nexus-wage-widget本文件是 daily_wage.html 的权威参考。路径:references\daily_wage.html
一个单文件 HTML+CSS+JS 桌面 widget,含:
Noto Sans SC(fonts.loli.net CDN,不是 Google Fonts)Source Code Pro每个主题通过 CSS 变量 --variant 覆盖:
每个主题覆盖 15 个 CSS 变量:--bg-grad, --glass-bg, --glass-border, --glass-highlight, --text-main, --text-sub, --accent-money, --accent-money-soft, --accent-focus, --accent-other, --panel-bg, --panel-hover, --ambient-1, --ambient-2, --ambient-3, --progress-shimmer, --shadow-soft, --shadow-strong
--glass-opacity: 0.4(默认),可设置,CSS 变量--glass-blur: 24px(默认),可设置::before 伪元素顶部边缘高光overflow: hiddenmax-width: 740pxclamp(36px, 5.5vw, 48px),冒号闪烁动画clamp(40px, 6.5vw, 52px),发光动画max-width: 340px,竖排 flexclamp(46px, 9vw, 60px)响应式断点:单断点 900px。>900px = PC 版,≤900px = 手机版
宽屏版(id="focus-wide"):
--accent-focus方形版(id="focus-sq"):
激活状态:.pom-active 类 → 边框 --accent-focus + 紫色光晕 box-shadow
交互逻辑(IIFE 闭包 var Pom):
toggle() → 启动/停止 25 分钟倒计时widget_(如 widget_theme, widget_salary)Config 对象){
theme, widgetType, salary, startTime, endTime, payday, glassOpacity, glassBlur,
getDailyData() { /* 计算 dailySalary, startSec, endSec, totalWorkSec, salaryPerSec */ }
}
function loop() {
updateWidget();
requestAnimationFrame(loop);
}
breathe / breathe2 — 环境光呼吸shimmer — 进度条流光pulse-dot — 工作状态指示灯脉冲colon-blink — 时间冒号闪烁money-glow — 金额发光float-btn — 设置按钮呼吸subtle-float — 微浮动gradient-shift — 渐变位移prefers-reduced-motion: reduce--accent-other → --accent-money + 阴影::afterreferences\daily_wage.html如果需要在另一台机器重新创建:
fonts.loli.net.glass-card + .w-panel + 环境光 .ambient-light × 3requestAnimationFrame 实时更新循环引用源文件:若用户询问细节,直接读取 references\daily_wage.html 获取精确代码。