parent
f62573a3b8
commit
7126d13b6f
@ -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
|
||||||
|
@ -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));
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user