Repository navigation
[feat] tui: monokai wears Monokai Pro's palette - #176
Conversation
|
@claude review |
|
Claude finished @gogoout's task in 2m 22s —— View job Review complete
This is a clean, well-scoped change. Summary of what I checked: Design (ADR 0040 /
Mechanical changes
Minor, non-blocking observation
What I could not verify
No blocking issues found. Nice fix for the "screen of additions reads as green" problem, and the ADR does the work of naming what it overturns (0039's Reminder from the PR description: this is stacked on #175 and targets |
Classic Monokai, matched to its stock olive ground, reads as green: every grey mixed from that ground takes the olive, and the yellow-green addition tint sits right beside it. The `monokai` theme now wears Monokai Pro's warm-grey palette instead, under the same name, so existing configs keep working. Classic Monokai is no longer shipped. two-face does not ship Monokai Pro, so a seed's syntax theme is now a `Syntax`: a two-face name as before, or a `.tmTheme` compiled into the crate and parsed by syntect. `monokai.tmTheme` is written here from Monokai Pro's published palette values alone; no official or ported theme file is copied, and the crate is not affiliated with Monokai Pro (ADR 0040). Its blue is lifted to clear the chroma floor, as Dracula's cyan was, and its orange is the search fill so the fill and the skim tier are two colours.
ced657b to
135a987
Compare
|
On the re-parse note: no change. |
Review follow-up. derive() takes the search fill from the seed, so the file's findHighlight is inert, but it said yellow where the seed says orange. They agree now.
Stacked on #175. Retarget this PR to
mainbefore merging it, after #175 is merged. A squash merge into the fix branch would strand it there.Why
After #175, classic Monokai sits on its stock olive ground
#272822. Every grey mixed from that ground takes the olive too, and the yellow-green addition tint is close to its hue. So a screen of additions reads as green. Themonokaitheme now wears Monokai Pro's warm-grey palette instead.What changes
monokaiis Monokai Pro. The config name stays the same, so existingtheme = "monokai"configs keep working. Classic Monokai is no longer shipped. A reader onmonokaiwill see a different palette after upgrading.Seed::syntaxis now aSyntax:Embedded(a two-face name, as before) orBundled(a.tmThemecompiled in withinclude_bytes!and parsed by syntect'sThemeSet::load_from_reader). Nothing is loaded at run time. two-face does not ship Monokai Pro, which is why this is needed (ADR 0040).monokai.tmThemeis written for this crate. It uses Monokai Pro's published palette values only. No official or ported theme file is copied, and the docs say the crate is not affiliated with Monokai Pro. The scope mapping is our own.#78DCE8to#6CD9E8, which clears the chroma floor, as Dracula's cyan was lifted.#FC9867is the search fill, so the fill and the yellow skim tier are two different colours.#939293are used.#727072is under 3:1 on the ground, so the noise tier uses the mix.Tests
cargo test,clippy -D warningsandfmtare clean.every_named_theme_buildsparses the bundled file, and the legibility, chroma, distinctness and own-colour tests all run over it..tmThemeis included in thecargo packagefile list.assets/themes/monokai.pngis regenerated.