feat(webui): UI 优化 v9-v16 - RemixIcon 图标系统与配色规范统一#3
Merged
massif-01 merged 16 commits intoRMinte:mainfrom Feb 6, 2026
Merged
Conversation
UI Changes: - Replace emojis with RemixIcon throughout WebUI - Add RemixIcon font support (minimal build) - Add favicon and logo images - Login icon: ri-door-open-line - Task state indicators: colored RemixIcon circles - Footer: non-fixed positioning - Remove redundant page titles Backend Fixes: - Add device.ping API (ICMP ping implementation) - Add device.power toggle action for LPMU - Fix LPMU not auto-starting on boot (call ts_device_lpmu_start_detection) - Add ts_device_power_toggle() function New Files: - README_EN.md (English documentation) - help/security-guide.en.mdx (English security guide) - Web fonts and images Merged upstream changes: - OTA server improvements - UI Widget persistence - Version management system
Merged upstream commits (7 new): - 23aef4d: SSH 服务模式与日志监控功能 - d15550b: 完善服务模式日志监控 - 635897b: 调整NTP服务器顺序 - acf2434: WebUI 关机设置模态框 - 9cec214: 电压保护自动化变量更新 - 6481621: SD卡配置优先级 - f9f7317: sparkle_states 迁移到 PSRAM Conflict resolution: - style.css: Combined RemixIcon styles + SSH service mode styles - app.js: Kept upstream shutdown settings button + RemixIcon icons - app.js: Kept upstream service status refresh logic + RemixIcon
- Keep local RemixIcon usage (ri-door-open-line, ri-refresh-line, etc) - Add i18n data attributes for translation support - Preserve all UI modifications from UI修改.md
- 删除 ts_api_device.c 中重复的 api_device_ping 函数定义 - 删除 ts_device_ctrl.c 中重复的 ts_device_power_toggle 函数定义 - 修复 ts_ssh_log_watch.c 中 3 处格式字符串错误(使用 PRIu32 宏) 这些问题是在合并 upstream v0.4.0 后出现的重复代码。
v9.0 - 设备面板与风扇控制优化: - 删除「设备面板」和「风扇控制」标题的 emoji - 「组件管理」按钮:📊 → ri-apps-line - 「曲线」按钮:📈 → ri-line-chart-line - 「刷新」按钮:🔄 → ri-refresh-line - 「有效温度」标签:🌡️ → ri-temp-hot-line - 「目标转速」标签:⚙️ → ri-dashboard-3-line - 删除「风扇 X」标题的 🌀 emoji - 删除「手动」模式的 ✋ emoji v10.0 - 风扇控制与内存页面优化: - 「测试温度」标签:🧪 → ri-scan-line - 修复风扇控制状态栏左对齐问题 (padding-left: 0) - 内存详细分析「优化建议」emoji → ri-checkbox-blank-circle-fill + 彩色样式 所有 RemixIcon Unicode 值已从本地 RemixIcon 项目验证。
- 修复绑定温度变量区块对齐问题 - 应用曲线按钮改为 btn-service-style 并移除 emoji - 绑定按钮改为 btn-service-style 配色 - 未绑定徽章改为 OTA 按钮配色 - 曲线点 emoji 替换为 RemixIcon: - 🌡️ → ri-temp-hot-line - → → ri-arrow-right-line - 🌀 → ri-dashboard-3-line - 数据监控管理页面 emoji 清理 - 添加新组件按钮改为 btn-service-style
- 服务状态颜色按照 UI 配色规范更新 (RUNNING/STOPPED) - 小按钮文字颜色统一为灰色 #666 (关机设置、USB、同步、时区、曲线、刷新) - 手动按钮圆角修复为 4px,与测试按钮形状一致 - 组件管理按钮改用 btn-service-style,与打开管理面板风格一致 - 移除语言切换器的 globe emoji 和国旗 emoji
- 卡片间距调整:.cards margin-top 改为 0,与 header 间距统一 - 服务状态按钮改用 btn-service-style,与 OTA 按钮风格一致 - 手动按钮添加边框,更像标准按钮 - LED 刷新按钮删除文字,只保留图标 - 任务栈表格颜色按配色规范调整 - 导航栏、进度条、状态点等颜色统一 - 内存详情页面背景色和文字色按规范调整
- Emoji → RemixIcon:编辑、删除、下载、上传、新建文件夹、刷新、面包屑根目录 - 删除所有文件页面多余 emoji(SD卡、SPIFFS、卸载、挂载、文件图标等) - 按钮样式统一为 btn-service-style(淡蓝底 #f0f8ff + 蓝字 #007bff) - 卸载 SD 按钮改为与 SD 卡一致的 btn-service-style - 文件列表添加白色卡片容器,与系统页面风扇控制面板样式一致 - 工具栏按钮大小与登出按钮一致(padding: 4px 12px, font-size: 0.85rem) - 修复表格断行问题:移除 <td> 的 display: flex,改用 inline-block - 表格列宽优化:勾选 3%、名称 57%、大小 15%、操作 25% - 已挂载文字配色规范(绿色 #2e7d32 + 淡绿背景 #e8f5e9) - 新增 RemixIcon:ri-edit-line, ri-download-line, ri-upload-line, ri-folder-add-line, ri-folder-line, ri-home-line Co-authored-by: Cursor <cursoragent@cursor.com>
- 保护状态开关:CSS toggle switch → RemixIcon 按钮 (ri-toggle-line/ri-toggle-fill) - 按钮配色:禁用蓝色 (#f0f8ff/#007bff)、启用绿色 (#e8f5e9/#2e7d32) - 添加 toggleProtection() 和 updateProtectionUI() 函数 Co-authored-by: Cursor <cursoragent@cursor.com>
- 移除按钮底色和边框,仅保留图标 - 禁用状态:灰色 (#666) - 启用状态:绿色 (#2e7d32) Co-authored-by: Cursor <cursoragent@cursor.com>
- 终端页面:删除日志按钮 emoji,日志/清屏改用 btn-service-style - 终端页面:调整按钮与顶栏间距,提示图标改用 ri-information-line - 系统页面:Toast 消息配色改为 MD 规范淡色方案 - 系统页面:打开管理面板按钮大小与 OTA 一致 - 新增 RemixIcon:ri-lightbulb-line, ri-information-line 等 Co-authored-by: Cursor <cursoragent@cursor.com>
- 合并上游 LED 色彩校正功能 - 保留本地 UI 修改 (v15-v16) Co-authored-by: Cursor <cursoragent@cursor.com>
massif-01
added a commit
that referenced
this pull request
Feb 6, 2026
回退以下提交: - ce34b97 feat(webui): v15-v16 终端页面与系统页面 UI 优化 - 3a3c89a fix(webui): 保护开关样式优化 - 纯图标显示 - 3930787 feat(webui): v14 电源保护开关优化 - e176055 feat(webui): 文件页面优化 - RemixIcon 替换与布局优化 - 1546fb5 feat(webui): v13 UI 细节优化 - 24af0eb feat(webui): v12 UI 配色统一与按钮样式优化 - 60daad2 feat(webui): v11 风扇曲线管理 UI 优化 - c1a035c feat(webui): v9-v10 UI优化 - RemixIcon 替换与对齐修复 This reverts PR #3 and PR #4. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WebUI 界面优化,包含以下改进:
图标系统
remixicon.css和remixicon.woff2字体文件配色规范统一
#e8f5e9+ 深绿字#2e7d32#ffebee+ 深红字#c62828#fff8e1+ 橙字#f57c00#f0f8ff+ 蓝字#007bff页面优化
ri-information-linebtn-service-style版本历史
Test Plan
Made with Cursor