Hello. Can you please help me - is there is a way to recieve a color from palette after it changed?
Following example shows, that it is not working for me.
public void paletteRGB() {
Workbook workbook = new Workbook();
int[] colors = new int[] {0x00F9F9F9, 0x00F9F9F9, 0x00969696, 0x00F9F9F9, 0x00D0D0D0, 0x00ECECEC};
for(int color : colors) {
workbook.changePalette(Color.fromArgb(color), 2);
assertEquals(color, workbook.getThemeColor(2).toArgb());
}
}
Best regards. Alexey