change color to increase contrast in light themes

Resolves #157
This commit is contained in:
marhali 2022-08-24 21:15:46 +02:00
parent f62573a3b8
commit 7126d13b6f
3 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@
## [Unreleased]
### Changed
- Documentation provider better focuses on the actual translation part
- Color duplicate translation values orange to increase contrast in light themes
### Fixed
- Unintended overwrite of existing folding regions

View File

@ -78,8 +78,8 @@ public class TreeModelMapper extends DefaultTreeModel {
data.setForcedTextForeground(JBColor.RED);
color = JBColor.RED;
} else if(TranslationUtil.hasDuplicates(new Translation(keyPath, childTranslationNode.getValue()), this.data)) {
data.setForcedTextForeground(JBColor.YELLOW);
color = JBColor.YELLOW;
data.setForcedTextForeground(JBColor.ORANGE);
color = JBColor.ORANGE;
}
parent.add(new DefaultMutableTreeNode(data));

View File

@ -28,7 +28,7 @@ public class TableRenderer extends DefaultTableCellRenderer {
if(missesValues(row, table)) {
component.setForeground(JBColor.RED);
} else if(hasDuplicates(row, table)) {
component.setForeground(JBColor.YELLOW);
component.setForeground(JBColor.ORANGE);
}
return component;