Skip to content

Conversation

@rasamassen
Copy link

@rasamassen rasamassen commented Oct 7, 2025

Description

Create SimpleType/Color with preset color values.
Deprecate FGCOLOR constants, but note in Color which colors can be used in fgColor.

This allows preset colors (as defined in OOXML, see https://c-rex.net/samples/ooxml/e1/Part4/OOXML_P4_DOCX_ST_PresetColorVal_topic_ID0ELA5NB.html) to be used by a wide variety of styles rather than just fgColor.

Fixes # (issue)

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

@rasamassen rasamassen changed the title SimpleType:: Color - Create a simple color type for easily specifying preset color values. SimpleType: Color - Create a simple color type for easily specifying preset color values. Oct 7, 2025
@coveralls
Copy link

coveralls commented Oct 7, 2025

Coverage Status

coverage: 96.665% (-0.09%) from 96.757%
when pulling e96bc35 on rasamassen:color
into 0ab0b49 on PHPOffice:master.

oleibman added a commit to oleibman/PHPWord that referenced this pull request Nov 23, 2025
I made RTF usable some time ago. @rasamassen has recently done a lot of useful work to cover many missing areas. Since who knows when those changes will be merged, I intend to incorporate much of that work. I will do this with several pushes, each based on one or more of those changes. This one is based on PR PHPOffice#2836, PR PHPOffice#2839, and PR PHPOffice#2850.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants