Add Olive Nights theme#1038
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughA new dark "Olive Nights" theme is added to the theme system. The type contract is extended to recognize ChangesOlive Nights Theme Addition
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Greptile SummaryThis PR adds
Confidence Score: 4/5Safe to merge; the change is purely additive and self-contained. One color value warrants a quick look before landing. The theme registration is complete and consistent across all three required locations. The only concern is src/shared/themes.ts — specifically the Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["'olive-nights' string"] --> B{isValidThemeId?}
B -->|yes| C[ThemeId union type]
C --> D[THEMES Record lookup]
D --> E[Theme object\nmode: dark\n20 colors]
E --> F[UI renders\nolive-nights palette]
Reviews (1): Last reviewed commit: "Add Olive Nights theme" | Re-trigger Greptile |
| textMain: '#f2ebc0', | ||
| textDim: '#cec8ba', | ||
| accent: '#5b675b', | ||
| accentDim: 'rgba(31, 43, 31, 1)', |
There was a problem hiding this comment.
Every other theme in the codebase uses a fractional alpha for
accentDim (e.g. rgba(38, 139, 210, 0.2)) so the overlay blends with whatever sits beneath it. Using rgba(31, 43, 31, 1) makes it fully opaque, which can produce a solid-colored block instead of a subtle tint in any UI component that layers accentDim over other content (e.g. hover highlights, selection overlays). If a solid dark-green fill was intended, a hex value would be clearer and more honest about the intent; if a transparent tint was intended, the alpha needs to be reduced.
| accentDim: 'rgba(31, 43, 31, 1)', | |
| accentDim: 'rgba(31, 43, 31, 0.15)', |
|
Thanks for the contribution, @felipeggv — and for the thorough validation notes. 🫒 Reviewed and merging as-is. A note on the one item the bots flagged: Verified locally: theme tests green ( |
Summary
Adds Olive Nights as a built-in dark theme based on the current custom theme palette.
Changes
olive-nightstheme to the shared theme registry.olive-nightsas a validThemeId.Validation
npm run test -- src/__tests__/renderer/constants/themes.test.ts src/__tests__/shared/theme-types.test.ts src/__tests__/main/themes.test.tsnpx prettier --check src/shared/themes.ts src/shared/theme-types.ts src/__tests__/renderer/constants/themes.test.ts src/__tests__/shared/theme-types.test.tsnpm run lintNote: the branch contains only theme-related files. The local workspace has unrelated Usage Dashboard changes, so the branch was built from
origin/rcwith only the theme patch applied.Summary by CodeRabbit