Commit fdab4f0a authored by Matija Obreza's avatar Matija Obreza

Column background colors updated

parent 2f184e0a
......@@ -106,10 +106,10 @@ public class SheetDisplay extends Composite {
@Autowired
private ObjectMapper mapper;
final Color pinkColor = SWTResourceManager.getColor(255, 192, 203);
final Color blueColor = SWTResourceManager.getColor(173, 216, 230);
final Color yellowColor = SWTResourceManager.getColor(SWT.COLOR_YELLOW);
final Color listBackgroundColor = SWTResourceManager.getColor(SWT.COLOR_LIST_BACKGROUND);
final Color unmappedColumnSelectedColor = SWTResourceManager.getColor(239, 239, 210);
final Color mappedColumnUnselectedColor = SWTResourceManager.getColor(199, 213, 235);
final Color mappedColumnSelectedColor = SWTResourceManager.getColor(117, 152, 206);
private static class ContentProvider implements IStructuredContentProvider {
@Override
......@@ -148,13 +148,13 @@ public class SheetDisplay extends Composite {
if (currentColumn.getRdfTerm() != null && !currentColumn.getRdfTerm().isEmpty()) {
if (currentColumn == selectedColumn) {
cell.setBackground(pinkColor); // pink
cell.setBackground(mappedColumnSelectedColor); // pink
} else {
cell.setBackground(blueColor); // light blue
cell.setBackground(mappedColumnUnselectedColor); // light blue
}
} else {
if (currentColumn == selectedColumn) {
cell.setBackground(yellowColor); // yellow
cell.setBackground(unmappedColumnSelectedColor); // yellow
} else {
cell.setBackground(listBackgroundColor); // default
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment