WebUI: 前端视觉与交互统一化(RemixIcon/配色/安全页/按钮态)Webui frontend unify#5
Merged
massif-01 merged 13 commits intoRMinte:mainfrom Feb 8, 2026
Merged
WebUI: 前端视觉与交互统一化(RemixIcon/配色/安全页/按钮态)Webui frontend unify#5massif-01 merged 13 commits intoRMinte:mainfrom
massif-01 merged 13 commits intoRMinte:mainfrom
Conversation
- LED卡片背景统一为白色,消除分割线 - 效果按钮(solid/breathing/sparkle)改为蓝色btn-service-style样式 - LED开关图标改为灯泡(ri-lightbulb-fill/line),开启绿色关闭红色 - 保存按钮改为蓝色无底色remixicon - 风扇曲线模式删除"当前xx%"小字,只显示大蓝色百分比
- Refactor color correction UI with card-based layout - Fix alignment of header buttons and title - Uniform btn-service-style for export/import buttons - Add TianshanOS frontend modification.md to gitignore to stop tracking it
- 新增 ESP-IDF、C、ESP32-S3、Configuration Oriented 徽章 - 系统架构从 ASCII 改为 Mermaid 图表,解决网页显示错位问题
- LED: 调色板与颜色缩小约1/3; 更多动画移到底部栏用ri-play-line; Matrix的QR/文本/滤镜移到底部保存左侧; 程序动画弹窗动画名首字母大写 - 固件升级: 保存与检查更新按钮统一高度 - 版权: RMinte后加注册商标® - i18n: ledPage.effects/selectAnimation
- 程序动画模态框【保存】加 ri-save-line - 风扇/LED/自动化/文件页刷新按钮:min-size、z-index、type=button、title,:active 蓝色 (btn-service-style) - 色彩校正【导出】【导入】加 ri-download-line/ri-upload-line - 文件页刷新改为灰色默认;网络&时间【同步】:active 蓝色 - 修改历史见 TianshanOS frontend modification.md (v47-v52)
… config pack & import/export host - security-guide: 5 blocks (add Config Pack), 3.0 Import Host, 3.0.1 Export host, Task 5 Config Pack - Remove all emojis; clarify status card, verify-only, fingerprint view, button names - Add Q8b troubleshooting for import signature verification failure - Add relation to Commands page; config pack list column notes - Sync same structure and refinements to security-guide.en.mdx
275cb5d to
03f1dd4
Compare
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.
Pull Request: WebUI 前端视觉与交互统一化修改
本 PR 对 TianshanOS WebUI 进行仅视觉与图标层面的统一化修改,不改变任何布局、不删除任何功能,便于上游审阅与合并。
一、修改原则(承诺)
frontend_modification.md所有改动均遵循以上原则,仅涉及:Emoji → RemixIcon 图标替换、按钮/标签样式类统一、部分布尔判断显式化,以及编译与打包相关注意事项的文档化。
二、UI 配色规范(新增/统一)
为保持 OTA、登出、组件管理等「服务型」操作与危险/成功/警告类操作在视觉上一致,统一采用以下规范:
btn-service-style#f0f8ff#007bff#d0e8ffbtn-danger#ffebee#c62828#ef9a9abtn-success#e8f5e9#2e7d32#a5d6a7btn-warning#fff8e1#f57c00#ffd54f#666#f5f6fabadge-service-style(与上表浅蓝一致)。btn-sm,区块/表格/弹窗内一致,.page-security内.btn/.btn-sm的 padding 与 font-size 已统一。三、主要修改内容概览
1. Emoji → RemixIcon 图标替换
ri-xxx-line),图标 Unicode 来自components/ts_webui/web/fonts/remixicon.css,确保先定义再使用,避免未定义类导致方框。<i class="ri-box-3-line"></i>;风扇/曲线、色彩校正、保存/下载/上传等使用对应ri-*-line;安全页 CSR/证书/安装 CA 链等弹窗去 Emoji,统一 RemixIcon。getEffectIcon()(原 LED 效果 emoji 映射),界面统一使用getEffectIconRemix()。2. 按钮可点击性与按下态
:active蓝色按下态。btn-service-style,与 OTA/登出等保持一致。3. 安全页专项
badge-service-style(浅蓝);.badge-info同款浅蓝。btn-sm,区块/表格/弹窗内一致。key.exportable === false ? 'disabled' : '',避免 API 未返回exportable(undefined)时误禁用按钮。4. 风扇与曲线
ri-check-line等。btn-sm、ri-save-line等统一。5. 数据监控
ri-box-3-line;宽度等使用ri-ruler-line。btn-service-style;编辑面板图标与颜色行对齐。6. 其他
btn-service-style。四、编译与版本说明(供维护者参考)
rm -f build/www.bin再编译,否则www.bin可能不会重新打包。version.txt后,建议idf.py reconfigure再idf.py build,避免 CMake 缓存导致固件版本元数据(Git Hash/时间戳)未更新,影响 OTA 检测。source ~/esp/v5.5.2/esp-idf/export.sh后执行上述命令。五、修改历史(版本摘要)
六、测试建议
本 PR 仅包含上述前端与文档修改,不改变任何 Core API、配置结构或后端行为。