Skip to content

ui: dark is readable, and a version nobody compared is not zero - #42

Merged
huxc573 merged 1 commit into
mainfrom
dark-readability
Oct 22, 2026
Merged

huxc573 merged 1 commit into
mainfrom
dark-readability

Conversation

@huxc573

@huxc573 huxc573 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
  • 桌面深色回到原型的 html[data-theme="dark"] 色板(画布 #0F1116 / 卡片 #181B21 / 浮起 #1E222A / 下沉 #242932 / 选中 #1D2C3E)。0.3.14 借了手机 M3 色板,background 与 surface 同为 #141318,每张卡片落在它本该浮起的那个颜色上 —— 整窗一块黑板,只剩细线分区。这是「深色模式啥都看不清」的直接原因。
  • 两档次级文字高于原型,原因写在设计仓 决策记录/0002:--dim #98A1B0 → #C2CAD8(对卡片 5.4:1 → 9.6:1)、--dim-2 #6D7686 → #97A0AE(2.8:1 → 5.7:1)。原型这两档按浏览器字号定,这里 11–12sp 要承担整句说明。
  • 未连接远端时「本机版本 / 远端版本」不再显示 100 / 0,改占位符 —— 0 读起来像协议之前的构建。
  • 截图夹具改为每屏清空 scratch 目录(原来每进程一次),否则上一张图留下的文件会被拍进下一张,回归网自己就不稳。

桌面 13 张基线按新色重录;手机端未改色板,基线未动。./gradlew check 绿。

The dark window was drawing every card on the colour the card was meant to stand
on: 0.3.14 had taken the phone's M3 palette, where background and surface are both
#141318. One flat black field, separated only by hairlines — which is what "深色模式
啥都看不清" describes. The desktop's own dark tokens are back, value for value from
html[data-theme="dark"]: canvas #0F1116, panel #181B21, raised #1E222A, sunken
#242932, selection #1D2C3E.

Two text weights stay above the prototype, because the prototype's are sized for a
browser: --dim #98A1B0 is 5.4:1 on a panel and --dim-2 #6D7686 is 2.8:1, and both
carry whole sentences at 11–12sp here. They are #C2CAD8 and #97A0AE now, which is
9.6:1 and 5.7:1. The exception is written down in the design repo, not in a comment.

Also: with no peer, 本机版本 / 远端版本 read "100 / 0", and 0 looks like a build from
before the protocol existed. It reads an em dash now, like the other empty values.

The preview fixture empties its scratch area per screenshot rather than once per JVM:
a state left behind by the previous test was being photographed in the next one.
@huxc573
huxc573 merged commit bb20d3a into main Oct 22, 2026
3 checks passed
@huxc573
huxc573 deleted the dark-readability branch October 22, 2026 15:08
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.

1 participant