-
Notifications
You must be signed in to change notification settings - Fork 21
feat: add alucard #15
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
base: master
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughA new Xcode color theme file named Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Repository
participant Xcode
User->>Repository: Download or clone theme files (Dracula/Alucard.xccolortheme)
User->>User: Move theme file to ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
User->>Xcode: Open Xcode and navigate to Preferences > Themes
User->>Xcode: Select and activate the new theme
✨ Finishing Touches🧪 Generate Unit Tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
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 (2)
.github/issue_template.md (1)
1-1
: Use “a UI” instead of “an UI”.Minor grammatical touch-up for smoother reading.
-> If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug. +> If you're reporting a UI issue, make sure you take a screenshot that shows the actual bug.INSTALL.md (1)
38-39
: Consider updating the theme selection instructions.The instructions still reference "Dracula Theme" specifically, but with the addition of Alucard, users might expect guidance on selecting either theme variant.
Consider updating the instruction to be more generic:
-2. Select Dracula Theme +2. Select your preferred theme (Dracula or Alucard)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.github/issue_template.md
(1 hunks).github/pull_request_template.md
(1 hunks)Alucard.xccolortheme
(1 hunks)INSTALL.md
(1 hunks)
🧰 Additional context used
🪛 LanguageTool
.github/issue_template.md
[misspelling] ~1-~1: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: > If you're reporting an UI issue, make sure you take a screensh...
(EN_A_VS_AN)
🔇 Additional comments (10)
.github/pull_request_template.md (1)
1-1
: LGTM – newline addition keeps templates consistent.
No further action needed.INSTALL.md (3)
3-9
: Excellent addition of Git installation method.The new Git installation section provides a better way for users to stay updated with theme changes compared to downloading zip files. The clear instructions and logical separation from manual installation improve user experience.
13-13
: Good update to use main branch.Updating the download link to use the
main
branch instead ofmaster
aligns with modern Git conventions and ensures users get the latest version.
24-35
: Well-structured theme setup section.The unified theme setup section effectively consolidates installation steps and properly references both the Dracula and Alucard themes. The separation between Git/Manual installations and all methods provides clear guidance for different installation paths.
Alucard.xccolortheme (6)
1-4
: Proper XML structure and DOCTYPE declaration.The XML declaration and DOCTYPE are correctly formatted for an Xcode color theme plist file, ensuring proper parsing by Xcode.
31-34
: Appropriate font and color version settings.The DVTFontAndColorVersion is set to 1 and DVTLineSpacing to 1.1, which are standard values for Xcode themes.
85-96
: Consistent light theme color scheme.The source text background uses the same warm cream tone as the console background, and the current line highlight, selection, and insertion point colors are well-coordinated for a light theme aesthetic.
98-163
: Comprehensive syntax coloring definitions.The syntax coloring dictionary covers all essential code elements with a consistent color palette. The use of different shades for system vs. user-defined identifiers provides good visual distinction.
164-230
: Appropriate font styling for syntax elements.The font selections are well-thought-out:
- Regular weight for most identifiers
- Medium weight for declarations and documentation
- Bold for keywords and marks
- MediumItalic for comments
This provides good visual hierarchy while maintaining readability.
1-233
: Verify theme completeness and consistency.The theme appears comprehensive, but it would be good to verify that all necessary Xcode theme keys are included and that the color scheme aligns with the Alucard variant specifications referenced in the PR.
#!/bin/bash # Verify the theme file structure and check for any missing common Xcode theme keys echo "Checking theme file structure..." # Check for common DVT keys that should be present in Xcode themes expected_keys=( "DVTConsoleDebuggerInputTextColor" "DVTConsoleDebuggerOutputTextColor" "DVTSourceTextBackground" "DVTSourceTextSyntaxColors" "DVTSourceTextSyntaxFonts" ) echo "Verifying presence of essential theme keys:" for key in "${expected_keys[@]}"; do if grep -q "$key" Alucard.xccolortheme; then echo "✓ $key found" else echo "✗ $key missing" fi done # Check color value format (should be RGBA values between 0 and 1) echo -e "\nChecking for invalid color values..." grep -E "string>[0-9]+\.[0-9]+ [0-9]+\.[0-9]+ [0-9]+\.[0-9]+ [0-9]+\.[0-9]+<" Alucard.xccolortheme | \ while read -r line; do # Extract RGBA values rgba=$(echo "$line" | sed -E 's/.*>([0-9.]+) ([0-9.]+) ([0-9.]+) ([0-9.]+)<.*/\1 \2 \3 \4/') for value in $rgba; do if (( $(echo "$value > 1.0" | bc -l) )); then echo "⚠ Potential invalid color value: $value in line: $line" fi done done
➕ Adds Alucard (Classic) variant according to specs here.