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: case 1:
// equal - default green // equal - default green
setForeground(Settings.TABLE_EQUAL_COLOR); setForeground(Settings.TABLE_EQUAL_COLOR);
setText("[unchanged] "+item.getValue());
break; break;
case 2: case 2:
// different - default red // different - default red
setForeground(Settings.TABLE_DIFFERENT_COLOR); setForeground(Settings.TABLE_DIFFERENT_COLOR);
setText("[modified] "+item.getValue());
break; break;
case 3: case 3:
// missing - default yellow // missing - default yellow
setForeground(Settings.TABLE_MISSING_COLOR); setForeground(Settings.TABLE_MISSING_COLOR);
setText("[missing] "+item.getValue());
break; break;
default: default:
setForeground(paramList.getForeground()); setForeground(paramList.getForeground());
setText(item.getValue());
break; break;
} }
setText(item.getValue());
return this; return this;
} }
} }