Skip to content

refactor: split CrtDisplay into partial classes by responsibility#8

Merged
NeverMorewd merged 1 commit intomainfrom
refactor/split-crtdisplay-partial-classes
Mar 23, 2026
Merged

refactor: split CrtDisplay into partial classes by responsibility#8
NeverMorewd merged 1 commit intomainfrom
refactor/split-crtdisplay-partial-classes

Conversation

@NeverMorewd
Copy link
Copy Markdown
Owner

Summary

  • CrtDisplay.cs was a single 819-line file, making it hard to navigate
  • Split into three focused partial class files with no behaviour changes:
    • CrtDisplay.cs (~310 lines): core — overlay layer, animation state, constructor, lifecycle, timer management, noise computation, utility
    • CrtDisplay.Properties.cs (~230 lines): all StyledProperty declarations and CLR property wrappers
    • CrtDisplay.Rendering.cs (~165 lines): all Draw* effect methods and brush cache helpers

Test plan

  • Project builds with 0 warnings (dotnet build)
  • Existing tests pass
  • Visual output unchanged at runtime

🤖 Generated with Claude Code

CrtDisplay.cs was a single 819-line file. Split into three focused
partial class files:
- CrtDisplay.cs: core logic (overlay layer, state, lifecycle, timers, noise)
- CrtDisplay.Properties.cs: StyledProperty declarations and CLR wrappers
- CrtDisplay.Rendering.cs: Draw* effect methods and brush cache helpers

No behaviour changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@NeverMorewd NeverMorewd merged commit 4c10e87 into main Mar 23, 2026
1 check 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.

1 participant