mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
`Chart::text_color` was read from a .pptx (the axes', legend's or chart's `c:txPr`) but never written, and any edit drops the kept part and rebuilds it from the model, so a save after an edit lost the colour. The writer now puts it where PowerPoint keeps it: `c:txPr` on both axes, the legend, the data labels and the chart root, and the run defaults of the title's rich text (chart and axis titles). Nothing is written without a colour, so the theme default still applies on reading. Round-trip tests: a scheme colour with a lumMod, an RGB colour and no colour come back as set; a chart read with a `tx1` 65 %/35 % colour on its axis keeps it through a title edit and a rebuild of the part. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>