Skip to content

feat: add CSS color conversion helpers for MTextColor and bump version to 1.4.1#5

Merged
mlightcad merged 1 commit intomainfrom
feat/color
Mar 12, 2026
Merged

feat: add CSS color conversion helpers for MTextColor and bump version to 1.4.1#5
mlightcad merged 1 commit intomainfrom
feat/color

Conversation

@mlightcad
Copy link
Owner

Summary:

  • Add CSS color parsing utilities for #rgb, #rrggbb, rgb(...), and rgba(...) with clamping and normalization.
  • Add MTextColor.toCssColor() and MTextColor.fromCssColor(...).
  • Bump package version to 1.4.1.

Tests:

  • Add unit tests covering hex, short-hex, rgb(...), rgba(...), and transparent handling.
  • Verify toCssColor() returns hex for RGB colors and null for ACI-only colors.

@mlightcad mlightcad self-assigned this Mar 12, 2026
@mlightcad mlightcad added the enhancement New feature or request label Mar 12, 2026
@mlightcad mlightcad merged commit 8a0f41f into main Mar 12, 2026
1 check passed
@mlightcad mlightcad deleted the feat/color branch March 12, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant