Design review: themes, widgets, watch and Quick Look !468

open opened by cmc on 2026-11-22 21:35 UTC · krz/orgstar:design-themes-widgets into main

Discussion

cmc

Design review findings 3, 6, 7, 10, 23, 27, 34, 36, 39 and 40 (docs/review-2026-11-22-design.md). Ref #221 #222 #223 #224.

Changes

  • 3 Themes: a secondary role in every ported palette for text drawn quieter than body text (tags, comments, #+KEYWORD lines, planning lines and drawers, code comments, cancelled keywords, priority C, agenda times and categories, sidebar headers), at 4.5:1 or more on the background. dim stays for markup, block delimiters, line numbers and the inline-code background. secondary is dim mixed toward fg until it reaches 4.5:1. Default light: done, agenda-today, todo-cancelled, priority-c and the markup greys raised. Palette.lowContrast flags Solarized Light and Dark. PaletteTests.textSlotsReachAA checks every built-in theme.
  • 6 Habits widget: with Differentiate Without Colour, a day's bar is as solid as its state is urgent (clear 25 %, due 50 %, last chance 75 %, overdue 100 %), days to come are outlined, and a done day's dot is cut out of the darker bars.
  • 7 Today widget: keyword and priority badges in caption2 instead of 9 pt; gutter, priority ring and category dot are @ScaledMetric.
  • 10 One accessibility element per Today row (time, keyword, priority, title, category), per habit (title, days done, today's state), and per complication; circular and corner complications say "N open today".
  • 23 Watch: only "Open orgstar on your iPhone to show your agenda here." until an agenda has arrived.
  • 27 Watch: keyword colours by class (open red, under way blue, on hold yellow, done green, cancelled grey) and status colours (overdue red, due soon orange). These are semantic colours, not the phone's theme: WatchAgenda.Entry carries no colours, and adding them means changing OrgWatchData and the phone's WatchAgenda init in OrgApp. The keyword word lists copy ThemeSpec.TodoClass's, since the watch targets link only OrgWatchData.
  • 34 Today widget's empty rows, Controls ("Capture", "Clocked in", "No recent clock", "First template", "Capture with %@") and complications ("Agenda clear", "%lld open today", "Agenda", "Open orgstar", "Nothing left today") go through the catalog. The Clock control reads "Clock In to %@" as the watch does.
  • 36 Live Activity: its Clock Out button has its own key, clock-activity.clock-out: de "Ausstempeln", es "Detener", fr "Arrêter". The shared "Clock Out" key (Mac toolbar, watch, command title) is unchanged.
  • 39 Today date and Habits title are widgetAccentable; in the tinted and clear styles the habit graph uses the opacity steps of finding 6.
  • 40 Quick Look reads a file as UTF-8, else Latin-1.

Manual: 13-configuration.org (themes), 14-ios.org (widgets, controls, watch), 15-alongside-emacs.org (Quick Look). New catalog keys have de, es, fr, ja and pt-BR.

Theme colours changed

secondary on the background (old value: dim, which these slots used):

Theme Old Ratio New Ratio
Solarized Light #93a1a1 2.48 #5f747a 4.56
Gruvbox Light #928374 3.24 #776c61 4.51
Modus Operandi #595959 7.00 #595959 7.00
Catppuccin Latte #8c8fa1 2.83 #696c83 4.56
Tomorrow #8e908c 3.22 #767774 4.51
Paper #7d7262 4.25 #796e5f 4.50
Solarized Dark #586e75 2.79 #7f9092 4.51
Gruvbox Dark #928374 4.02 #9b8c7a 4.51
Modus Vivendi #989898 7.28 #989898 7.28
Catppuccin Mocha #7f849c 4.44 #81869e 4.56
Nord #616e88 2.43 #929cb0 4.52
Dracula #6272a4 3.03 #8491b6 4.55
Tokyo Night #565f89 2.76 #7881ac 4.50
doom-one #5b6268 2.26 #8c939d 4.52

Default light, on #ffffff:

Slot Old Ratio New Ratio
done #248a3d 4.40 #1a7f37 5.08
agenda-today #007aff 4.02 #0969da 5.19
todo-cancelled #8e8e93 3.26 #6e7781 4.55
priority-c #6c7a8c 4.37 #6a788a 4.50
markup, block-delimiter, line-number #8c959f 3.04 #6e7781 4.55

Not changed: on the block and sidebar backgrounds secondary stays under 4.5:1 in several themes (Dracula 2.92, Solarized Dark 3.90, Gruvbox Dark 3.55, Nord 3.64; Default light's #6e7781 is 4.27 on #f6f8fa). Solarized's body text and coloured roles stay upstream's. Default dark's markup greys are 4.12.

Not done here

  • The theme pickers should show "low contrast" for palettes with lowContrast: Sources/Orgstar/ThemePickerSection.swift:36 and Sources/OrgstarMobile/ThemePickerScreen.swift:20, with a "Low contrast" catalog key, and a sentence in 13-configuration.org's Themes section.

Checks

  • swift test: green.
  • Orgstar macOS and Orgstar iOS Xcode builds: succeeded.
  • Watch app on the Apple Watch Series 11 (46mm) simulator: the empty state shows the hint alone.
  • Mac snapshots of Nord, Dracula and Catppuccin Latte before and after.
  • Needs a device: widgets on the Home and Lock Screen, tinted and clear styles, Differentiate Without Colour, complications, Controls, the Live Activity in German, VoiceOver on widgets and complications.