Created attachment 38433 [details] Adding XWPFTheme While XSLF already has support for 'themes' via XSLFTheme, there is no counterpart for XWPF yet. The patch on this tickets adds XWPFTheme (the implementation is mostly copied from XSLFTheme, since there's not much difference between them). Please let me know what you're thinking!
thanks - added with r1905344 Would it be possible to add more test coverage - for regression purposes?
Sure, I'll add some tests. Thanks!
Created attachment 38435 [details] Basic test for XWPF themes Added a small test case to verify that a theme can be read.
thanks - added with r1905374 Would it be possible to add a test where a new themes file is created in a docx file?
Sorry, I should have mentioned that in the previous comment. I was considering a test for modifying a theme, but the "XWPFTheme" implementation is based on/aligned with the existing "XSLFTheme", which doesn't provide methods to modify the theme (besides going through "getXmlObject()", but that seems to be an internal method). I agree that it would be nice to be able to modify themes (for XSLF and XWPF), but it seemed to me like that's out of scope of this patch. Or do you think differently?