Skip to content
Snippets Groups Projects
Commit d826406f authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

fixed bug: default foreground color was wrong

parent 065496eb
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@
package de.bmotionstudio.gef.editor.model;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.draw2d.ColorConstants;
import de.bmotionstudio.gef.editor.AttributeConstants;
......@@ -32,9 +32,10 @@ public class BText extends BControl {
@Override
protected void initAttributes() {
initAttribute(AttributeConstants.ATTRIBUTE_TEXT, DEFAULT_TEXT);
initAttribute(AttributeConstants.ATTRIBUTE_BACKGROUND_COLOR, new RGB(
255, 255, 255));
initAttribute(AttributeConstants.ATTRIBUTE_TEXT_COLOR, DEFAULT_TEXT);
initAttribute(AttributeConstants.ATTRIBUTE_BACKGROUND_COLOR,
ColorConstants.white.getRGB());
initAttribute(AttributeConstants.ATTRIBUTE_TEXT_COLOR,
ColorConstants.black.getRGB());
initAttribute(AttributeConstants.ATTRIBUTE_BACKGROUND_VISIBLE, true);
initAttribute(AttributeConstants.ATTRIBUTE_FONT,
"1||9.75|0|WINDOWS|1|-13|0|0|0|400|0|0|0|0|0|0|0|0|");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment