Commit 221497c
committed
fix(chart): align OOXML builder palette with SVG preview palette
ChartHelper.Builder.DefaultSeriesColors and ChartSvgRenderer.FallbackColors
both held a 12-color default rotation but disagreed on slots 8/10/11/12 —
the darker (lumMod=75%) tints of accents 2/4/5/6. The Builder values
(9B4A22/BF8F00/3A75A8/4E8538) were near-but-wrong; the Renderer values
(9E480E/997300/255E91/43682B) match Office's actual lumMod=75% derivation.
Result: charts written with no explicit colors picked one palette while
the in-app HTML preview drew the same series with a slightly different
palette — a real visual drift.
Both arrays now derive from a single canonical source on
OfficeDefaultThemeColors.DefaultChartSeriesPalette.1 parent d9aa77f commit 221497c
3 files changed
Lines changed: 27 additions & 9 deletions
File tree
- src/officecli/Core
- Chart
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
823 | 826 | | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
| 827 | + | |
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
36 | 52 | | |
37 | 53 | | |
38 | 54 | | |
| |||
0 commit comments