Compare Table Accessibility: Updated compare table to prepend every row with their type to serve as a visual cue for color blind

This commit is contained in:
Joseph Dalrymple 2017-07-01 03:31:04 -05:00
parent 2440af8d4c
commit dfa6ff7ffd
1 changed files with 4 additions and 1 deletions

View File

@ -344,20 +344,23 @@ public class CompareImagesForm extends JFrame implements ActionListener {
case 1:
// equal - default green
setForeground(Settings.TABLE_EQUAL_COLOR);
setText("[unchanged] "+item.getValue());
break;
case 2:
// different - default red
setForeground(Settings.TABLE_DIFFERENT_COLOR);
setText("[modified] "+item.getValue());
break;
case 3:
// missing - default yellow
setForeground(Settings.TABLE_MISSING_COLOR);
setText("[missing] "+item.getValue());
break;
default:
setForeground(paramList.getForeground());
setText(item.getValue());
break;
}
setText(item.getValue());
return this;
}
}