- Timestamp:
- 2011-06-24T23:20:07+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/ConflictColors.java
r4162 r4163 15 15 BGCOLOR_DECIDED(marktr("Conflict background: decided"), new Color(217,255,217)), 16 16 BGCOLOR_UNDECIDED(marktr("Conflict background: undecided"), new Color(255,197,197)), 17 BGCOLOR_ MINE(marktr("Conflict background: mine"), Color.white),18 BGCOLOR_ THEIR(marktr("Conflict background: their"), new Color(217,255,217)),17 BGCOLOR_DROP(marktr("Conflict background: drop"), Color.white), 18 BGCOLOR_KEEP(marktr("Conflict background: keep"), new Color(217,255,217)), 19 19 BGCOLOR_COMBINED(marktr("Conflict background: combined"), new Color(217,255,217)), 20 20 BGCOLOR_SELECTED(marktr("Conflict background: selected"), new Color(143,170,255)), 21 21 22 22 FGCOLOR_UNDECIDED(marktr("Conflict foreground: undecided"), Color.black), 23 FGCOLOR_ MINE(marktr("Conflict foreground: mine"), Color.lightGray),24 FGCOLOR_ THEIR(marktr("Conflict foreground: their"), Color.black),23 FGCOLOR_DROP(marktr("Conflict foreground: drop"), Color.lightGray), 24 FGCOLOR_KEEP(marktr("Conflict foreground: keep"), Color.black), 25 25 26 26 BGCOLOR_EMPTY_ROW(marktr("Conflict background: empty row"), new Color(234,234,234)), -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/MineTableCellRenderer.java
r4162 r4163 8 8 9 9 public class MineTableCellRenderer extends TagMergeTableCellRenderer { 10 /* NOTE: mine and their colors are reversed for this renderer */11 10 12 11 protected void setBackgroundColor(TagMergeItem item, boolean isSelected) { 13 if (isSelected) 12 if (isSelected) { 14 13 setBackground(ConflictColors.BGCOLOR_SELECTED.get()); 15 14 return; 16 15 } 17 18 16 if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) { 19 setBackground(ConflictColors.BGCOLOR_ THEIR.get());17 setBackground(ConflictColors.BGCOLOR_KEEP.get()); 20 18 } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) { 21 setBackground(ConflictColors.BGCOLOR_ MINE.get());19 setBackground(ConflictColors.BGCOLOR_DROP.get()); 22 20 } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) { 23 21 setBackground(ConflictColors.BGCOLOR_UNDECIDED.get()); … … 27 25 protected void setTextColor(TagMergeItem item) { 28 26 if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) { 29 setForeground(ConflictColors.FGCOLOR_ THEIR.get());27 setForeground(ConflictColors.FGCOLOR_KEEP.get()); 30 28 } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) { 31 setForeground(ConflictColors.FGCOLOR_ MINE.get());29 setForeground(ConflictColors.FGCOLOR_DROP.get()); 32 30 } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) { 33 31 setForeground(ConflictColors.FGCOLOR_UNDECIDED.get()); … … 37 35 @Override 38 36 protected void renderKey(TagMergeItem item, boolean isSelected) { 39 setBackgroundColor(item, isSelected);37 setBackgroundColor(item, isSelected); 40 38 setTextColor(item); 41 39 if (item.getMyTagValue() == null) { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TheirTableCellRenderer.java
r4162 r4163 15 15 } 16 16 if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) { 17 setBackground(ConflictColors.BGCOLOR_ MINE.get());17 setBackground(ConflictColors.BGCOLOR_DROP.get()); 18 18 } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) { 19 setBackground(ConflictColors.BGCOLOR_ THEIR.get());19 setBackground(ConflictColors.BGCOLOR_KEEP.get()); 20 20 } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) { 21 21 setBackground(ConflictColors.BGCOLOR_UNDECIDED.get()); … … 24 24 25 25 protected void setTextColor(TagMergeItem item) { 26 if (MergeDecisionType.KEEP_ THEIR.equals(item.getMergeDecision())) {27 setForeground(ConflictColors.FGCOLOR_ THEIR.get());28 } else if (MergeDecisionType.KEEP_ MINE.equals(item.getMergeDecision())) {29 setForeground(ConflictColors.FGCOLOR_ MINE.get());26 if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) { 27 setForeground(ConflictColors.FGCOLOR_DROP.get()); 28 } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) { 29 setForeground(ConflictColors.FGCOLOR_KEEP.get()); 30 30 } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) { 31 31 setForeground(ConflictColors.FGCOLOR_UNDECIDED.get());
Note:
See TracChangeset
for help on using the changeset viewer.