Skip to content

fix(ui): keep active color scheme untouched in High-readability timeline - #2264

Merged
kitlangton merged 1 commit into
devfrom
fix-readability-keep-colors
Dec 3, 2026
Merged

kitlangton merged 1 commit into
devfrom
fix-readability-keep-colors

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Keeps your active theme and color scheme 100% untouched when High-readability timeline is enabled.
High-readability now applies purely to spacing and typography — 560 pt prose measure (~70 CPL while code/diffs/tables stay 696 pt), 14.5 / 23.5 Inter, 0.92× w400 inline code, and 13.5 / 20.5 (12 × 9 pt) table cells — without overriding oc-2 with a cool slate-blue palette or mutating custom themes.

💡 Why

  • Mutating oc-2 to bluish slate (#17191b / #1f2226) under a readability toggle changed the visual theme unexpectedly; color preference belongs in Settings › Appearance › Theme (e.g. Flexoki, Zenburn, Vesper, Modus, Catppuccin, Everforest), while High-readability should be pure layout & typography.
- readability.rs: 200+ lines mutating oc-2 to blue-slate + OKLCH clamping custom themes
+ readability.rs: 35 lines of per-frame typography/layout state; active theme colors stay 100% intact

👀 Read: crates/opencode-ui/src/readability.rs and crates/opencode-ui/src/palette.rs.

Checks run
  • cargo check --bin opencode-desktop: PASS
  • cargo check -p session-view --examples: PASS
  • bash scripts/guardrails.sh: PASS

@kitlangton
kitlangton merged commit f57938d into dev Dec 3, 2026
8 checks passed
@kitlangton
kitlangton deleted the fix-readability-keep-colors branch December 3, 2026 08:19
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