|
|
@ -17,6 +17,7 @@ public class AdjustWorkBookDefaultStyleUtils { |
|
|
|
|
|
|
|
|
|
|
|
private static final Color TEMPLATE_BACKGROUND = new Color(16, 11, 43); |
|
|
|
private static final Color TEMPLATE_BACKGROUND = new Color(16, 11, 43); |
|
|
|
private static final Color CELL_ELEMENT_BORDER = new Color(110, 110, 110); |
|
|
|
private static final Color CELL_ELEMENT_BORDER = new Color(110, 110, 110); |
|
|
|
|
|
|
|
private static final Color CELL_ELEMENT_FONT_FOREGROUND = Color.WHITE; |
|
|
|
|
|
|
|
|
|
|
|
private static Color currentStoryBack = null; |
|
|
|
private static Color currentStoryBack = null; |
|
|
|
|
|
|
|
|
|
|
@ -31,7 +32,7 @@ public class AdjustWorkBookDefaultStyleUtils { |
|
|
|
public static void adjustCellElement(CellElement cellElement) { |
|
|
|
public static void adjustCellElement(CellElement cellElement) { |
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
style = style.deriveFRFont(style.getFRFont().applyForeground(Color.WHITE)); |
|
|
|
style = style.deriveFRFont(style.getFRFont().applyForeground(CELL_ELEMENT_FONT_FOREGROUND)); |
|
|
|
style = style.deriveBorder(0, CELL_ELEMENT_BORDER, |
|
|
|
style = style.deriveBorder(0, CELL_ELEMENT_BORDER, |
|
|
|
0, CELL_ELEMENT_BORDER, |
|
|
|
0, CELL_ELEMENT_BORDER, |
|
|
|
0, CELL_ELEMENT_BORDER, |
|
|
|
0, CELL_ELEMENT_BORDER, |
|
|
@ -40,6 +41,10 @@ public class AdjustWorkBookDefaultStyleUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Color adjustCellElementFontForeground(Color color) { |
|
|
|
|
|
|
|
return DesignModeContext.isDuchampMode() ? CELL_ELEMENT_FONT_FOREGROUND : color; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void adjustFloatElement(FloatElement floatElement) { |
|
|
|
public static void adjustFloatElement(FloatElement floatElement) { |
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
Style style = floatElement.getStyle(); |
|
|
|
Style style = floatElement.getStyle(); |
|
|
|