Ignore:
Timestamp:
2017-10-12T16:02:15+02:00 (7 years ago)
Author:
bastiK
Message:

see #15410 - change preferences scheme for named colors - makes runtime color name registry obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r12881 r12987  
    7171import org.openstreetmap.josm.data.preferences.AbstractProperty;
    7272import org.openstreetmap.josm.data.preferences.BooleanProperty;
    73 import org.openstreetmap.josm.data.preferences.ColorProperty;
    7473import org.openstreetmap.josm.data.preferences.DoubleProperty;
     74import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    7575import org.openstreetmap.josm.gui.help.Helpful;
    7676import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor;
     
    8080import org.openstreetmap.josm.gui.widgets.JosmTextField;
    8181import org.openstreetmap.josm.spi.preferences.Config;
     82import org.openstreetmap.josm.tools.ColorHelper;
    8283import org.openstreetmap.josm.tools.Destroyable;
    8384import org.openstreetmap.josm.tools.GBC;
     
    110111     * @since 6789
    111112     */
    112     public static final ColorProperty PROP_BACKGROUND_COLOR = new ColorProperty(
    113             marktr("Status bar background"), "#b8cfe5");
     113    public static final NamedColorProperty PROP_BACKGROUND_COLOR = new NamedColorProperty(
     114            marktr("Status bar background"), ColorHelper.html2color("#b8cfe5"));
    114115
    115116    /**
     
    117118     * @since 6789
    118119     */
    119     public static final ColorProperty PROP_ACTIVE_BACKGROUND_COLOR = new ColorProperty(
    120             marktr("Status bar background: active"), "#aaff5e");
     120    public static final NamedColorProperty PROP_ACTIVE_BACKGROUND_COLOR = new NamedColorProperty(
     121            marktr("Status bar background: active"), ColorHelper.html2color("#aaff5e"));
    121122
    122123    /**
     
    124125     * @since 6789
    125126     */
    126     public static final ColorProperty PROP_FOREGROUND_COLOR = new ColorProperty(
     127    public static final NamedColorProperty PROP_FOREGROUND_COLOR = new NamedColorProperty(
    127128            marktr("Status bar foreground"), Color.black);
    128129
     
    131132     * @since 6789
    132133     */
    133     public static final ColorProperty PROP_ACTIVE_FOREGROUND_COLOR = new ColorProperty(
     134    public static final NamedColorProperty PROP_ACTIVE_FOREGROUND_COLOR = new NamedColorProperty(
    134135            marktr("Status bar foreground: active"), Color.black);
    135136
Note: See TracChangeset for help on using the changeset viewer.