Repository navigation
feat(theme): add Gaia Aether palette - #49
Conversation
…0 updates Bumps the patch-and-minor group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [ignore](https://github.com/BurntSushi/ripgrep) | `0.4.26` | `0.4.32` | | [tokio](https://github.com/tokio-rs/tokio) | `1.52.3` | `1.53.1` | | [anyhow](https://github.com/dtolnay/anyhow) | `1.0.103` | `1.0.104` | | [clap](https://github.com/clap-rs/clap) | `4.6.1` | `4.6.6` | | [serde](https://github.com/serde-rs/serde) | `1.0.228` | `1.0.229` | | [toml](https://github.com/toml-rs/toml) | `1.1.2+spec-1.1.0` | `1.1.5+spec-1.1.0` | | [ratatui-image](https://github.com/ratatui/ratatui-image) | `11.0.6` | `11.0.7` | | [edtui](https://github.com/preiter93/edtui) | `0.11.3` | `0.11.7` | | [ureq](https://github.com/algesten/ureq) | `3.3.0` | `3.4.0` | | [serde_json](https://github.com/serde-rs/json) | `1.0.150` | `1.0.151` | Updates `ignore` from 0.4.26 to 0.4.32 - [Release notes](https://github.com/BurntSushi/ripgrep/releases) - [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md) - [Commits](BurntSushi/ripgrep@ignore-0.4.26...ignore-0.4.32) Updates `tokio` from 1.52.3 to 1.53.1 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](tokio-rs/tokio@tokio-1.52.3...tokio-1.53.1) Updates `anyhow` from 1.0.103 to 1.0.104 - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](dtolnay/anyhow@1.0.103...1.0.104) Updates `clap` from 4.6.1 to 4.6.6 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.6.1...clap_complete-v4.6.6) Updates `serde` from 1.0.228 to 1.0.229 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.228...v1.0.229) Updates `toml` from 1.1.2+spec-1.1.0 to 1.1.5+spec-1.1.0 - [Commits](toml-rs/toml@toml-v1.1.2...toml-v1.1.5) Updates `ratatui-image` from 11.0.6 to 11.0.7 - [Release notes](https://github.com/ratatui/ratatui-image/releases) - [Changelog](https://github.com/ratatui/ratatui-image/blob/master/CHANGELOG.md) - [Commits](ratatui/ratatui-image@v11.0.6...v11.0.7) Updates `edtui` from 0.11.3 to 0.11.7 - [Release notes](https://github.com/preiter93/edtui/releases) - [Changelog](https://github.com/preiter93/edtui/blob/main/CHANGELOG.md) - [Commits](https://github.com/preiter93/edtui/commits) Updates `ureq` from 3.3.0 to 3.4.0 - [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md) - [Commits](algesten/ureq@3.3.0...3.4.0) Updates `serde_json` from 1.0.150 to 1.0.151 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](serde-rs/json@v1.0.150...v1.0.151) --- updated-dependencies: - dependency-name: ignore dependency-version: 0.4.32 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: tokio dependency-version: 1.53.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-and-minor - dependency-name: anyhow dependency-version: 1.0.104 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: clap dependency-version: 4.6.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: serde dependency-version: 1.0.229 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: toml dependency-version: 1.1.5+spec-1.1.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: ratatui-image dependency-version: 11.0.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: edtui dependency-version: 0.11.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor - dependency-name: ureq dependency-version: 3.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-and-minor - dependency-name: serde_json dependency-version: 1.0.151 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-and-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Gruvbox warmth on a blue-grey surface, with a dusty-mauve accent, matching the AETHER / G.A.I.A v2 desktop theme. Three slots deviate from the source palette because its literal values fail the crate's own contrast audit: accent.primary uses the source magenta (#c98fa0) since no foreground reaches AA on #a0607a, state.selection_bg is a lightened selection (#503a4a) to clear MIN_SELECTION_DELTA, and state.focus is the magenta accent at 6.45:1 on the base surface.
…-safe helper (leboiko#50) The class parser kept a local `strip_keyword_prefix_ci` that sliced `line[..kw.len()]` at a byte index, so a line such as `動物 <|-- 犬` panicked when a probed keyword length landed inside a multi-byte char. It is the copy the 0.56.1 audit (leboiko#29) missed; use the canonical `parser::common::strip_keyword_prefix` instead, as gantt and journey do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: worldnine <[email protected]>
…refix fix(mermaid-text): prevent UTF-8 parser panics and harden class methods
fix: align Unicode diagrams and preserve relationship geometry
Preserve Dependabot's original commit and add current patched parser, TLS and Tokio dependencies. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…26-11-05 fix: resolve Mermaid issues and prepare verified releases
leboiko
left a comment
There was a problem hiding this comment.
Theme wiring and palette construction reviewed. Minor documentation correction: the claim that no foreground reaches AA on #a0607a is incorrect; white reaches approximately 4.72:1, while the chosen #181c22 foreground reaches 3.62:1. I will correct the rationale without changing the palette, resolve the changelog conflict against current master, and run the local validation gates before merge.
|
Reviewed and corrected in a24867b, preserving the contributor commits.
Local validation passed: rustfmt, workspace/all-target Clippy, full workspace tests on stable and Rust 1.92, docs, cargo-deny and cargo-audit. Existing documentation warnings and six nonblocking audit warnings remain. No unresolved code findings. No manual terminal visual check. Detailed red-team review is committed in PR-49-review.md. Fork workflows approved; waiting for remote results. |
Summary
Adds a ninth built-in theme, Gaia Aether, to the
Themeenum: Gruvboxwarmth (cream
#f2e5bctext, moss and amber hues) on a blue-grey#181c22surface, with a dusty-mauve accent. It matches the AETHER / G.A.I.A v2
desktop palette I already use everywhere else, so a document read in this
viewer sits in the same colours as the rest of the desktop.
Follows the documented extension path in
src/theme/mod.rs— one enumvariant, one
Tokensconstructor insrc/theme/themes.rs, one dispatch armin
src/theme/tokens.rs— so nothing else needed touching. The settingsmodal, config parsing, and the syntect mapping pick it up automatically.
Changes
src/theme/mod.rs—Theme::GaiaAethervariant,Theme::ALL,label()(
"Gaia Aether"), andsyntax_theme_name()(
"base16-eighties.dark", the warm dark bucket shared with Dracula/Gruvbox Dark).src/theme/themes.rs—gaia_aether(), with the source-palette namescarried through as comments.
src/theme/tokens.rs— dispatch arm.README.md— theme count updated to nine, new bullet in the Themes list,gaia_aetheradded to theconfig.tomlexample.CHANGELOG.md—## [Unreleased]entry.Three slots deliberately depart from the source palette, because the literal
values fail this crate's existing contrast audit — the details are in the
gaia_aether()doc comment and the changelog entry:accent.primary#a0607a#c98fa0#a0607a(ceiling 3.76:1); it carrieson_accenttext in the status and tab bars. Source value stays asaccent.alt.state.selection_bg#261a28#503a4aMIN_SELECTION_DELTA(3.0) — an invisible selection.state.focus#c98fa0Test Plan
cargo test --workspace) — 1621 pass, 3 ignored, 0 fail, on Linuxsrc/theme/mod.rs::testsandsrc/theme/tokens.rs::testsiterateTheme::ALL, so the new variant is pinned to the same WCAG AA floor, focusvisibility, and selection-distinctness checks as every other theme
rustc1.98.1); macOS untestedmermaid-textCLI — no Mermaid changeAlso run locally, per
CONTRIBUTING.md:cargo fmt --all -- --check— cleancargo clippy --all-targets -- -D warnings— cleanManual check: launched the viewer against this repo's
README.md, opened thesettings modal (
c), confirmedGaia Aetherappears as the ninth entry andapplies live, and compared the rendered output against the desktop palette
(dark blue-grey surface, cream reading text, mauve selection highlight, moss
and cyan headings).
Checklist
markdown-tui-explorer, crate-local formermaid-text)clippywarnings (cargo clippy --all-targets -- -D warnings)Cargo.tomlif user-visible — left to your release commit, since your release flow bumps the version in a separaterelease:commit and I did not want to guess the next numberLinked Issue
None — no issue for this; happy to open one first if you would rather review
it as an issue than as a PR.