Repository navigation
Tokyo Night color scheme - #436
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe PR adds the public ChangesTokyo Night theme preset
Result ignore rule removal
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
src/core/user_config.rs (1)
188-245: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd focused tests for the Tokyo Night preset.
Cover the new preset contract in
src/core/user_config.rs:
ThemePreset::TokyoNightis included inThemePreset::all()and innext()/prev()."Tokyo Night"round-trips throughname()andfrom_name().ThemePreset::TokyoNight.to_theme()returns the expected Tokyo Night color values, similar to the existingThemePreset::Terminalcolor round-trip.Add these tests before merge:
cargo fmt --all,cargo clippy --no-default-features --features telemetry -- -D warnings, andcargo test --no-default-features --features telemetry.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/core/user_config.rs` around lines 188 - 245, Add focused tests in user_config.rs covering ThemePreset::TokyoNight membership and ordering through all(), next(), and prev(), plus the "Tokyo Night" name()/from_name() round trip. Add a to_theme() assertion verifying Tokyo Night’s expected color values, following the existing ThemePreset::Terminal color test pattern, then run cargo fmt, clippy with the specified features and warnings-as-errors, and the specified cargo test command.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/core/user_config.rs`:
- Around line 512-518: Update the background color entries in the user
configuration, including playbar_background and background, so their RGB values
match the intended Tokyo Night palette variant and their inline hexadecimal
comments accurately document those values. Apply the chosen variant consistently
to both fields.
- Around line 507-509: Update the color values in the user configuration palette
so error_border uses the intended Tokyo Night red (`#f7768e`) and hint uses the
intended Tokyo Night orange or yellow accent (`#ff9e64` or `#e0af68`). Keep
error_text unchanged unless needed for palette consistency, or explicitly
document any deliberate overrides.
- Line 519: Update the header color in ThemePreset::TokyoNight to use the fixed
RGB value for `#7aa2f7` instead of Color::Blue, preserving the existing
surrounding theme colors.
---
Nitpick comments:
In `@src/core/user_config.rs`:
- Around line 188-245: Add focused tests in user_config.rs covering
ThemePreset::TokyoNight membership and ordering through all(), next(), and
prev(), plus the "Tokyo Night" name()/from_name() round trip. Add a to_theme()
assertion verifying Tokyo Night’s expected color values, following the existing
ThemePreset::Terminal color test pattern, then run cargo fmt, clippy with the
specified features and warnings-as-errors, and the specified cargo test command.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 92de13e9-15a3-4f4e-b2af-c3906bd18fbc
📒 Files selected for processing (2)
.gitignoresrc/core/user_config.rs
Saw that new color themes are welcome, made one based on https://tokyonight.org/palette
Summary by CodeRabbit