|
|
|
@ -16,15 +16,16 @@ import java.awt.Color;
|
|
|
|
|
public class AdjustWorkBookDefaultStyleUtils { |
|
|
|
|
|
|
|
|
|
private static final Color TEMPLATE_BACKGROUND = new Color(16, 11, 43); |
|
|
|
|
private static final Color CELL_ELEMENT_BORDER = new Color(110, 110, 110); |
|
|
|
|
|
|
|
|
|
public static void adjustCellElement(CellElement cellElement) { |
|
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
|
style = style.deriveFRFont(style.getFRFont().applyForeground(Color.WHITE)); |
|
|
|
|
style = style.deriveBorder(0, Color.WHITE, |
|
|
|
|
0, Color.WHITE, |
|
|
|
|
0, Color.WHITE, |
|
|
|
|
0, Color.WHITE); |
|
|
|
|
style = style.deriveBorder(0, CELL_ELEMENT_BORDER, |
|
|
|
|
0, CELL_ELEMENT_BORDER, |
|
|
|
|
0, CELL_ELEMENT_BORDER, |
|
|
|
|
0, CELL_ELEMENT_BORDER); |
|
|
|
|
cellElement.setStyle(style); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|