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] ## [Unreleased]
### Changed ### Changed
- Documentation provider better focuses on the actual translation part - Documentation provider better focuses on the actual translation part
- Color duplicate translation values orange to increase contrast in light themes
### Fixed ### Fixed
- Unintended overwrite of existing folding regions - Unintended overwrite of existing folding regions

View File

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

View File

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