-
Notifications
You must be signed in to change notification settings - Fork 7
Syntax colors support #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds theme-based syntax color support (enum, mapping, getter), extends the dark theme with SyntaxColors and related UI style entries, adjusts settings flow to unload/reload current mode during theme application, tweaks a popup MarginContainer layout, and updates the changelog entry. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Settings as Settings UI
participant Main as core/main.gd
participant Mode as CurrentMode
participant Theme as Theme Engine
participant Utils as core/autoload/utils.gd
User->>Settings: change theme/preferences
Settings->>Main: _handle_settings()
Main->>Theme: apply_theme() %% includes SyntaxColors data
Theme->>Utils: expose SyntaxColors (SYNTAX_COLORS_MAP)
Utils-->>Main: get_syntax_color(...) returns Color
alt current mode exists
Main->>Mode: unload()
Note over Main,Mode: await frame/timer
Main->>Main: switch_to(previous_mode)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
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 |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Type of Change
Description
Adds code colors to themes, along with a function to quickly retrieve them. Fixes #111 but reloads current mode after settings change to handle theme changing.
Testing
Works fine.
Impact
Nothing special.
Additional Information
Nothing
Checklist
Summary by CodeRabbit