Skip to content

UI: restyle the pages after Apple's Human Interface Guidelines - #4

Merged
cnYui merged 1 commit into
mainfrom
claude/apple-ui
Nov 13, 2026
Merged

cnYui merged 1 commit into
mainfrom
claude/apple-ui

Conversation

@cnYui

@cnYui cnYui commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Restyles every page using the Human Interface Guidelines bundled in dickwu/apple-design-skill. It was used as a design reference only; none of its scripts were run. Only the frontend changes: styles.css, plus two display fixes in panel.js. Backend, MCP tools and page behaviour are unchanged.

What changed

  • Colours are semantic tokens with light and dark values, close to Apple's system palette. Every text/background pair is at least 4.5:1, checked from the hex values.
  • Filled accent surfaces use a separate --accent-fill, so white text on blue also passes in dark mode.
  • Type follows the macOS scale: 13 px body, 11 px minimum (tags were 10–10.5 px), and weight and size carry the hierarchy.
  • Sidebar: accent-tinted icons, rounded selection, a quieter brand block.
  • Segmented controls (仿真 modes, PCB 图/原理图, appearance) have a grey track and a raised thumb instead of a blue fill.
  • Cards sit on a grouped background with hairline edges and 12 px corners. This covers sections, parameter cards, checks, charts, the play bar, history and the MCP guide tables.
  • The test picker is a source list, with the chosen test filled in the accent. The status readout is an inset list.
  • Glass (blur) is used only on controls floating over the 3D views: the scene tag, the 拆开 toolbar and the stress legend.
  • Sheets (连接 AI, 设置) are borderless with 14 px corners.
  • The PCB parts table gets more room, and short columns stay on one line. The board picture sits on black and the schematic on white.
  • Accessibility media queries: prefers-reduced-motion, prefers-reduced-transparency and prefers-contrast: more.

Display fixes

  • Run history printed [object Object] for structured overrides. They are now shown as JSON.
  • With no project open, the sidebar showed "nullnull".

Checks

  • Screenshots of every page were checked in light, dark and an 820 px window: 运动回放, 强度和应力, 测试环境, 历史结果, PCB 元件, 建模, MCP 使用说明, 设置, 连接 AI and the welcome page.
  • No page errors.
  • tests/test_app.py and tests/test_mcp_docs.py pass.

Generated by Claude Code

Semantic colour tokens for light and dark (every text pair at least 4.5:1), macOS type
sizes with an 11 px minimum, a sidebar with accent-tinted icons, segmented controls with
a raised thumb, cards on a grouped background, a source-list test picker, glass only on
controls floating over the 3D views, borderless sheets, and answers for reduced motion,
reduced transparency and increased contrast. Two display fixes: run history showed
[object Object] for structured overrides, and the sidebar showed "nullnull" with no
project open. No backend, MCP or behaviour changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LYYasrqRAofRzzudWC4dqe
@cnYui
cnYui marked this pull request as ready for review November 13, 2026 07:58
@cnYui
cnYui merged commit 4b09354 into main Nov 13, 2026
6 checks passed
@cnYui
cnYui deleted the claude/apple-ui branch November 13, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants