import org.eclipse.jface.resource.ColorDescriptor;
import org.eclipse.jface.resource.FontDescriptor;
+import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.RGB;
import org.simantics.browsing.ui.content.LabelDecorator;
import org.simantics.databoard.Bindings;
return font;
else {
FontDescriptor desc = (FontDescriptor)font;
+ if(desc == null) desc = FontDescriptor.createFrom(JFaceResources.getDialogFont().getFontData());
return (Font)desc.withStyle(style);
}
}