Ignore:
Timestamp:
2011-06-24T23:13:02+02:00 (13 years ago)
Author:
stoecker
Message:

fix #4140 - make colors in conflict dialog configurable

Location:
trunk/src/org/openstreetmap/josm/gui/conflict/pair
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ComparePairListCellRenderer.java

    r3083 r4162  
    22package org.openstreetmap.josm.gui.conflict.pair;
    33
    4 import java.awt.Color;
    54import java.awt.Component;
    65
     
    98import javax.swing.ListCellRenderer;
    109
     10import org.openstreetmap.josm.gui.conflict.ConflictColors;
     11
    1112public class ComparePairListCellRenderer extends JLabel implements ListCellRenderer {
    12     public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
    13 
    1413    public ComparePairListCellRenderer() {
    1514        setOpaque(true);
     
    2423        ComparePairType type = (ComparePairType)value;
    2524        setText(type.getDisplayName());
    26         setBackground(isSelected ? BGCOLOR_SELECTED : Color.WHITE);
    27         setForeground(Color.BLACK);
     25        setBackground(isSelected ? ConflictColors.BGCOLOR_SELECTED.get() : ConflictColors.BGCOLOR.get());
     26        setForeground(ConflictColors.FGCOLOR.get());
    2827        return this;
    2928    }
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTableCellRenderer.java

    r4072 r4162  
    22package org.openstreetmap.josm.gui.conflict.pair.nodes;
    33
    4 import java.awt.Color;
    54import java.awt.Component;
    65import java.text.MessageFormat;
     
    1817import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1918import org.openstreetmap.josm.gui.DefaultNameFormatter;
     19import org.openstreetmap.josm.gui.conflict.ConflictColors;
    2020import org.openstreetmap.josm.gui.conflict.pair.ListMergeModel;
    2121import org.openstreetmap.josm.tools.ImageProvider;
     
    2626 */
    2727public  class NodeListTableCellRenderer extends JLabel implements TableCellRenderer {
    28     //static private final Logger logger = Logger.getLogger(NodeListTableCellRenderer.class.getName());
    29     //private static DecimalFormat COORD_FORMATTER = new DecimalFormat("###0.0000");
    30     public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
    31     public final static Color BGCOLOR_EMPTY_ROW = new Color(234,234,234);
    32     public final static Color BGCOLOR_FROZEN = new Color(234,234,234);
    33     public final static Color BGCOLOR_PARTICIPAING_IN_COMPARISON = Color.BLACK;
    34     public final static Color FGCOLOR_PARTICIPAING_IN_COMPARISON = Color.WHITE;
    35 
    36     public final static Color BGCOLOR_NOT_IN_OPPOSITE = new Color(255,197,197);
    37     public final static Color BGCOLOR_IN_OPPOSITE = new Color(255,234,213);
    38     public final static Color BGCOLOR_SAME_POSITION_IN_OPPOSITE = new Color(217,255,217);
    3928
    4029    private final ImageIcon icon;
     
    10291     */
    10392    protected void reset() {
    104         setBackground(Color.WHITE);
    105         setForeground(Color.BLACK);
     93        setBackground(ConflictColors.BGCOLOR.get());
     94        setForeground(ConflictColors.FGCOLOR.get());
    10695    }
    10796
     
    116105        setBorder(null);
    117106        if (model.getListMergeModel().isFrozen()) {
    118             setBackground(BGCOLOR_FROZEN);
     107            setBackground(ConflictColors.BGCOLOR_FROZEN.get());
    119108        } else if (isSelected) {
    120             setBackground(BGCOLOR_SELECTED);
     109            setBackground(ConflictColors.BGCOLOR_SELECTED.get());
    121110        } else if (model.isParticipatingInCurrentComparePair()) {
    122111            if (model.isSamePositionInOppositeList(row)) {
    123                 setBackground(BGCOLOR_SAME_POSITION_IN_OPPOSITE);
     112                setBackground(ConflictColors.BGCOLOR_SAME_POSITION_IN_OPPOSITE.get());
    124113            } else if (model.isIncludedInOppositeList(row)) {
    125                 setBackground(BGCOLOR_IN_OPPOSITE);
     114                setBackground(ConflictColors.BGCOLOR_IN_OPPOSITE.get());
    126115            } else {
    127                 setBackground(BGCOLOR_NOT_IN_OPPOSITE);
     116                setBackground(ConflictColors.BGCOLOR_NOT_IN_OPPOSITE.get());
    128117            }
    129118        }
     
    137126    protected void renderEmptyRow() {
    138127        setIcon(null);
    139         setBackground(BGCOLOR_EMPTY_ROW);
     128        setBackground(ConflictColors.BGCOLOR_EMPTY_ROW.get());
    140129        setText("");
    141130    }
     
    151140        setBorder(rowNumberBorder);
    152141        if (model.getListMergeModel().isFrozen()) {
    153             setBackground(BGCOLOR_FROZEN);
     142            setBackground(ConflictColors.BGCOLOR_FROZEN.get());
    154143        } else if (model.isParticipatingInCurrentComparePair()) {
    155             setBackground(BGCOLOR_PARTICIPAING_IN_COMPARISON);
    156             setForeground(FGCOLOR_PARTICIPAING_IN_COMPARISON);
     144            setBackground(ConflictColors.BGCOLOR_PARTICIPAING_IN_COMPARISON.get());
     145            setForeground(ConflictColors.FGCOLOR_PARTICIPAING_IN_COMPARISON.get());
    157146        }
    158147        setText(Integer.toString(row+1));
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java

    r3362 r4162  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Color;
    76import java.awt.GridBagConstraints;
    87import java.awt.GridBagLayout;
     
    2524import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2625import org.openstreetmap.josm.gui.DefaultNameFormatter;
     26import org.openstreetmap.josm.gui.conflict.ConflictColors;
    2727import org.openstreetmap.josm.gui.conflict.pair.IConflictResolver;
    2828import org.openstreetmap.josm.gui.conflict.pair.MergeDecisionType;
     
    3636public class PropertiesMerger extends JPanel implements Observer, IConflictResolver {
    3737    private static DecimalFormat COORD_FORMATTER = new DecimalFormat("###0.0000000");
    38 
    39     public final static Color BGCOLOR_NO_CONFLICT = new Color(234,234,234);
    40     public final static Color BGCOLOR_UNDECIDED = new Color(255,197,197);
    41     public final static Color BGCOLOR_DECIDED = new Color(217,255,217);
    4238
    4339    private  JLabel lblMyVersion;
     
    328324        lblTheirCoordinates.setText(coordToString(model.getTheirCoords()));
    329325        if (! model.hasCoordConflict()) {
    330             lblMyCoordinates.setBackground(BGCOLOR_NO_CONFLICT);
    331             lblMergedCoordinates.setBackground(BGCOLOR_NO_CONFLICT);
    332             lblTheirCoordinates.setBackground(BGCOLOR_NO_CONFLICT);
     326            lblMyCoordinates.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
     327            lblMergedCoordinates.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
     328            lblTheirCoordinates.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
    333329        } else {
    334330            if (!model.isDecidedCoord()) {
    335                 lblMyCoordinates.setBackground(BGCOLOR_UNDECIDED);
    336                 lblMergedCoordinates.setBackground(BGCOLOR_NO_CONFLICT);
    337                 lblTheirCoordinates.setBackground(BGCOLOR_UNDECIDED);
     331                lblMyCoordinates.setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
     332                lblMergedCoordinates.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
     333                lblTheirCoordinates.setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
    338334            } else {
    339335                lblMyCoordinates.setBackground(
    340336                        model.isCoordMergeDecision(MergeDecisionType.KEEP_MINE)
    341                         ? BGCOLOR_DECIDED : BGCOLOR_NO_CONFLICT
     337                        ? ConflictColors.BGCOLOR_DECIDED.get() : ConflictColors.BGCOLOR_NO_CONFLICT.get()
    342338                );
    343                 lblMergedCoordinates.setBackground(BGCOLOR_DECIDED);
     339                lblMergedCoordinates.setBackground(ConflictColors.BGCOLOR_DECIDED.get());
    344340                lblTheirCoordinates.setBackground(
    345341                        model.isCoordMergeDecision(MergeDecisionType.KEEP_THEIR)
    346                         ? BGCOLOR_DECIDED : BGCOLOR_NO_CONFLICT
     342                        ? ConflictColors.BGCOLOR_DECIDED.get() : ConflictColors.BGCOLOR_NO_CONFLICT.get()
    347343                );
    348344            }
     
    356352
    357353        if (! model.hasDeletedStateConflict()) {
    358             lblMyDeletedState.setBackground(BGCOLOR_NO_CONFLICT);
    359             lblMergedDeletedState.setBackground(BGCOLOR_NO_CONFLICT);
    360             lblTheirDeletedState.setBackground(BGCOLOR_NO_CONFLICT);
     354            lblMyDeletedState.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
     355            lblMergedDeletedState.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
     356            lblTheirDeletedState.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
    361357        } else {
    362358            if (!model.isDecidedDeletedState()) {
    363                 lblMyDeletedState.setBackground(BGCOLOR_UNDECIDED);
    364                 lblMergedDeletedState.setBackground(BGCOLOR_NO_CONFLICT);
    365                 lblTheirDeletedState.setBackground(BGCOLOR_UNDECIDED);
     359                lblMyDeletedState.setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
     360                lblMergedDeletedState.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
     361                lblTheirDeletedState.setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
    366362            } else {
    367363                lblMyDeletedState.setBackground(
    368364                        model.isDeletedStateDecision(MergeDecisionType.KEEP_MINE)
    369                         ? BGCOLOR_DECIDED : BGCOLOR_NO_CONFLICT
     365                        ? ConflictColors.BGCOLOR_DECIDED.get() : ConflictColors.BGCOLOR_NO_CONFLICT.get()
    370366                );
    371                 lblMergedDeletedState.setBackground(BGCOLOR_DECIDED);
     367                lblMergedDeletedState.setBackground(ConflictColors.BGCOLOR_DECIDED.get());
    372368                lblTheirDeletedState.setBackground(
    373369                        model.isDeletedStateDecision(MergeDecisionType.KEEP_THEIR)
    374                         ? BGCOLOR_DECIDED : BGCOLOR_NO_CONFLICT
     370                        ? ConflictColors.BGCOLOR_DECIDED.get() : ConflictColors.BGCOLOR_NO_CONFLICT.get()
    375371                );
    376372            }
     
    380376    protected void updateReferrers() {
    381377        lblMyReferrers.setText(referrersToString(model.getMyReferrers()));
    382         lblMyReferrers.setBackground(BGCOLOR_NO_CONFLICT);
     378        lblMyReferrers.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
    383379        lblTheirReferrers.setText(referrersToString(model.getTheirReferrers()));
    384         lblTheirReferrers.setBackground(BGCOLOR_NO_CONFLICT);
     380        lblTheirReferrers.setBackground(ConflictColors.BGCOLOR_NO_CONFLICT.get());
    385381    }
    386382
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberTableCellRenderer.java

    r4072 r4162  
    1717import org.openstreetmap.josm.data.osm.RelationMember;
    1818import org.openstreetmap.josm.gui.DefaultNameFormatter;
     19import org.openstreetmap.josm.gui.conflict.ConflictColors;
    1920import org.openstreetmap.josm.gui.conflict.pair.ListMergeModel;
    2021import org.openstreetmap.josm.tools.ImageProvider;
     
    2526 */
    2627public  class RelationMemberTableCellRenderer extends JLabel implements TableCellRenderer {
    27     public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
    28     public final static Color BGCOLOR_EMPTY_ROW = new Color(234,234,234);
    29 
    30     public final static Color BGCOLOR_NOT_IN_OPPOSITE = new Color(255,197,197);
    31     public final static Color BGCOLOR_IN_OPPOSITE = new Color(255,234,213);
    32     public final static Color BGCOLOR_SAME_POSITION_IN_OPPOSITE = new Color(217,255,217);
    33 
    34     public final static Color BGCOLOR_PARTICIPAING_IN_COMPARISON = Color.BLACK;
    35     public final static Color FGCOLOR_PARTICIPAING_IN_COMPARISON = Color.WHITE;
    36 
    37     public final static Color BGCOLOR_FROZEN = new Color(234,234,234);
    38 
    3928    private  Border rowNumberBorder = null;
    4029
     
    8473     */
    8574    protected void reset() {
    86         setBackground(Color.WHITE);
    87         setForeground(Color.BLACK);
     75        setBackground(ConflictColors.BGCOLOR.get());
     76        setForeground(ConflictColors.FGCOLOR.get());
    8877        setBorder(null);
    8978        setIcon(null);
     
    9281
    9382    protected void renderBackground(ListMergeModel<Node>.EntriesTableModel model, RelationMember member, int row, int col, boolean isSelected) {
    94         Color bgc = Color.WHITE;
     83        Color bgc = ConflictColors.BGCOLOR.get();
    9584        if (col == 0) {
    9685            if (model.getListMergeModel().isFrozen()) {
    97                 bgc = BGCOLOR_FROZEN;
     86                bgc = ConflictColors.BGCOLOR_FROZEN.get();
    9887            } else if (model.isParticipatingInCurrentComparePair()) {
    99                 bgc = BGCOLOR_PARTICIPAING_IN_COMPARISON;
     88                bgc = ConflictColors.BGCOLOR_PARTICIPAING_IN_COMPARISON.get();
    10089            } else if (isSelected) {
    101                 bgc = BGCOLOR_SELECTED;
     90                bgc = ConflictColors.BGCOLOR_SELECTED.get();
    10291            }
    10392        } else {
    10493            if (model.getListMergeModel().isFrozen()) {
    105                 bgc = BGCOLOR_FROZEN;
     94                bgc = ConflictColors.BGCOLOR_FROZEN.get();
    10695            } else if (member == null) {
    107                 bgc = BGCOLOR_EMPTY_ROW;
     96                bgc = ConflictColors.BGCOLOR_EMPTY_ROW.get();
    10897            } else if (isSelected) {
    109                 bgc = BGCOLOR_SELECTED;
     98                bgc = ConflictColors.BGCOLOR_SELECTED.get();
    11099            } else {
    111100                if (model.isParticipatingInCurrentComparePair()) {
    112101                    if (model.isSamePositionInOppositeList(row)) {
    113                         bgc = BGCOLOR_SAME_POSITION_IN_OPPOSITE;
     102                        bgc = ConflictColors.BGCOLOR_SAME_POSITION_IN_OPPOSITE.get();
    114103                    } else if (model.isIncludedInOppositeList(row)) {
    115                         bgc = BGCOLOR_IN_OPPOSITE;
     104                        bgc = ConflictColors.BGCOLOR_IN_OPPOSITE.get();
    116105                    } else {
    117                         bgc = BGCOLOR_NOT_IN_OPPOSITE;
     106                        bgc = ConflictColors.BGCOLOR_NOT_IN_OPPOSITE.get();
    118107                    }
    119108                }
     
    124113
    125114    protected void renderForeground(ListMergeModel<Node>.EntriesTableModel model, RelationMember member, int row, int col, boolean isSelected) {
    126         Color fgc = Color.BLACK;
     115        Color fgc = ConflictColors.FGCOLOR.get();
    127116        if (col == 0 && model.isParticipatingInCurrentComparePair() && ! model.getListMergeModel().isFrozen()) {
    128             fgc = Color.WHITE;
     117            fgc = ConflictColors.FGCOLOR_PARTICIPAING_IN_COMPARISON.get();
    129118        }
    130119        setForeground(fgc);
     
    155144    protected void renderEmptyRow() {
    156145        setIcon(null);
    157         setBackground(BGCOLOR_EMPTY_ROW);
     146        setBackground(ConflictColors.BGCOLOR_EMPTY_ROW.get());
    158147        setText("");
    159148    }
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/MergedTableCellRenderer.java

    r3083 r4162  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Color;
    7 
     6import org.openstreetmap.josm.gui.conflict.ConflictColors;
    87import org.openstreetmap.josm.gui.conflict.pair.MergeDecisionType;
    98
    109public class MergedTableCellRenderer extends TagMergeTableCellRenderer {
    11 
    12     public final static Color BGCOLOR_UNDECIDED = new Color(255,197,197);
    13     public final static Color BGCOLOR_MINE = new Color(217,255,217);
    14     public final static Color BGCOLOR_THEIR = new Color(217,255,217);
    15     public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
    16 
    1710    protected void setBackgroundColor(TagMergeItem item, boolean isSelected) {
    1811        if (isSelected) {
    19             setBackground(BGCOLOR_SELECTED);
     12            setBackground(ConflictColors.BGCOLOR_SELECTED.get());
    2013            return;
    2114        }
    2215        if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) {
    23             setBackground(BGCOLOR_MINE);
     16            setBackground(ConflictColors.BGCOLOR_COMBINED.get());
    2417        } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) {
    25             setBackground(BGCOLOR_THEIR);
     18            setBackground(ConflictColors.BGCOLOR_COMBINED.get());
    2619        } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) {
    27             setBackground(BGCOLOR_UNDECIDED);
     20            setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
    2821        }
    2922    }
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/MineTableCellRenderer.java

    r3083 r4162  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Color;
    7 
     6import org.openstreetmap.josm.gui.conflict.ConflictColors;
    87import org.openstreetmap.josm.gui.conflict.pair.MergeDecisionType;
    98
    109public class MineTableCellRenderer extends TagMergeTableCellRenderer {
    11 
    12     public final static Color BGCOLOR_UNDECIDED = new Color(255,197,197);
    13     public final static Color BGCOLOR_MINE = new Color(217,255,217);
    14     public final static Color BGCOLOR_THEIR = Color.white;
    15     public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
     10    /* NOTE: mine and their colors are reversed for this renderer */
    1611
    1712    protected void setBackgroundColor(TagMergeItem item, boolean isSelected) {
    1813        if (isSelected)  {
    19             setBackground(BGCOLOR_SELECTED);
     14            setBackground(ConflictColors.BGCOLOR_SELECTED.get());
    2015            return;
    2116        }
    2217
    2318        if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) {
    24             setBackground(BGCOLOR_MINE);
     19            setBackground(ConflictColors.BGCOLOR_THEIR.get());
    2520        } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) {
    26             setBackground(BGCOLOR_THEIR);
     21            setBackground(ConflictColors.BGCOLOR_MINE.get());
    2722        } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) {
    28             setBackground(BGCOLOR_UNDECIDED);
     23            setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
    2924        }
    3025    }
     
    3227    protected void setTextColor(TagMergeItem item) {
    3328        if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) {
    34             setForeground(Color.black);
     29            setForeground(ConflictColors.FGCOLOR_THEIR.get());
    3530        } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) {
    36             setForeground(Color.LIGHT_GRAY);
     31            setForeground(ConflictColors.FGCOLOR_MINE.get());
    3732        } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) {
    38             setForeground(Color.black);
     33            setForeground(ConflictColors.FGCOLOR_UNDECIDED.get());
    3934        }
    4035    }
     
    6560        }
    6661    }
    67 
    6862}
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeTableCellRenderer.java

    r4072 r4162  
    22package org.openstreetmap.josm.gui.conflict.pair.tags;
    33
    4 import java.awt.Color;
    54import java.awt.Component;
    65import java.text.MessageFormat;
     
    98import javax.swing.JTable;
    109import javax.swing.table.TableCellRenderer;
     10
     11import org.openstreetmap.josm.gui.conflict.ConflictColors;
    1112
    1213public abstract class TagMergeTableCellRenderer extends JLabel implements TableCellRenderer {
     
    1819    protected void reset() {
    1920        setOpaque(true);
    20         setBackground(Color.white);
    21         setForeground(Color.black);
     21        setBackground(ConflictColors.BGCOLOR.get());
     22        setForeground(ConflictColors.FGCOLOR.get());
    2223    }
    2324
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TheirTableCellRenderer.java

    r3083 r4162  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Color;
    7 
     6import org.openstreetmap.josm.gui.conflict.ConflictColors;
    87import org.openstreetmap.josm.gui.conflict.pair.MergeDecisionType;
    98
    109public class TheirTableCellRenderer extends TagMergeTableCellRenderer {
    1110
    12     public final static Color BGCOLOR_UNDECIDED = new Color(255,197,197);
    13     public final static Color BGCOLOR_MINE = Color.white;
    14     public final static Color BGCOLOR_THEIR = new Color(217,255,217);
    15     public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
    16 
    1711    protected void setBackgroundColor(TagMergeItem item, boolean isSelected) {
    1812        if (isSelected) {
    19             setBackground(BGCOLOR_SELECTED);
     13            setBackground(ConflictColors.BGCOLOR_SELECTED.get());
    2014            return;
    2115        }
    2216        if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) {
    23             setBackground(BGCOLOR_MINE);
     17            setBackground(ConflictColors.BGCOLOR_MINE.get());
    2418        } else if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) {
    25             setBackground(BGCOLOR_THEIR);
     19            setBackground(ConflictColors.BGCOLOR_THEIR.get());
    2620        } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) {
    27             setBackground(BGCOLOR_UNDECIDED);
     21            setBackground(ConflictColors.BGCOLOR_UNDECIDED.get());
    2822        }
    2923    }
     
    3125    protected void setTextColor(TagMergeItem item) {
    3226        if (MergeDecisionType.KEEP_THEIR.equals(item.getMergeDecision())) {
    33             setForeground(Color.black);
     27            setForeground(ConflictColors.FGCOLOR_THEIR.get());
    3428        } else if (MergeDecisionType.KEEP_MINE.equals(item.getMergeDecision())) {
    35             setForeground(Color.LIGHT_GRAY);
     29            setForeground(ConflictColors.FGCOLOR_MINE.get());
    3630        } else if (MergeDecisionType.UNDECIDED.equals(item.getMergeDecision())) {
    37             setForeground(Color.black);
     31            setForeground(ConflictColors.FGCOLOR_UNDECIDED.get());
    3832        }
    3933    }
Note: See TracChangeset for help on using the changeset viewer.