Skip to content

Tokyo Night color scheme - #436

Merged
shilicioo merged 5 commits into
LargeModGames:mainfrom
istipisti113:TokyoNightColorScheme
Aug 11, 2026
Merged

shilicioo merged 5 commits into
LargeModGames:mainfrom
istipisti113:TokyoNightColorScheme

Conversation

@istipisti113

@istipisti113 istipisti113 commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Saw that new color themes are welcome, made one based on https://tokyonight.org/palette

Summary by CodeRabbit

  • New Features
    • Added the Tokyo Night theme preset with its distinct color palette and selectable display name.
  • Chores
    • Updated project file handling so result output is no longer excluded from version control.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1b58b54b-0959-4bae-a400-de4abceb4285

📥 Commits

Reviewing files that changed from the base of the PR and between 90486e7 and d7b9f9a.

📒 Files selected for processing (1)
  • .gitignore
💤 Files with no reviewable changes (1)
  • .gitignore

📝 Walkthrough

Walkthrough

The PR adds the public ThemePreset::TokyoNight variant, registers its display and parsing names, defines its colors, and removes result ignore rules from Git.

Changes

Tokyo Night theme preset

Layer / File(s) Summary
Tokyo Night preset support
src/core/user_config.rs
ThemePreset now includes Tokyo Night in enumeration, display-name conversion, name parsing, and theme color generation.

Result ignore rule removal

Layer / File(s) Summary
Result ignore rule removal
.gitignore
Git no longer ignores entries named result or the root-level /result path.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title describes the Tokyo Night change but does not use a required conventional-commit prefix or an imperative subject. Rename the title to a concise imperative form with a valid prefix, such as "feat: add Tokyo Night theme".
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
src/core/user_config.rs (1)

188-245: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add focused tests for the Tokyo Night preset.

Cover the new preset contract in src/core/user_config.rs:

  • ThemePreset::TokyoNight is included in ThemePreset::all() and in next()/prev().
  • "Tokyo Night" round-trips through name() and from_name().
  • ThemePreset::TokyoNight.to_theme() returns the expected Tokyo Night color values, similar to the existing ThemePreset::Terminal color round-trip.

Add these tests before merge: cargo fmt --all, cargo clippy --no-default-features --features telemetry -- -D warnings, and cargo 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

📥 Commits

Reviewing files that changed from the base of the PR and between a79f776 and 32e9723.

📒 Files selected for processing (2)
  • .gitignore
  • src/core/user_config.rs

Comment thread src/core/user_config.rs Resolved
Comment thread src/core/user_config.rs Resolved
Comment thread src/core/user_config.rs Resolved
@shilicioo
shilicioo merged commit c60b053 into LargeModGames:main Aug 11, 2026
17 checks passed
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.

2 participants