Changeset 35106 in osm


Ignore:
Timestamp:
2019-09-02T20:40:52+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm18098 - color cadastre download panel to avoid confusion woth standard download panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/download/CadastreDownloadSourcePanel.java

    r34099 r35106  
    22package org.openstreetmap.josm.plugins.fr.cadastre.download;
    33
     4import static org.openstreetmap.josm.tools.I18n.marktr;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    56
     
    1819import org.openstreetmap.josm.data.Bounds;
    1920import org.openstreetmap.josm.data.preferences.BooleanProperty;
     21import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    2022import org.openstreetmap.josm.gui.download.AbstractDownloadSourcePanel;
    2123import org.openstreetmap.josm.gui.download.DownloadDialog;
     
    3335     */
    3436    public static final String SIMPLE_NAME = "cadastredownloadpanel";
     37
     38    /**
     39     * The color that is used for background painting.
     40     */
     41    public static final NamedColorProperty BG_COLOR = new NamedColorProperty(marktr("cadastre download panel"), new Color(255, 204, 51));
    3542
    3643    private final JCheckBox cbDownloadBuilding;
     
    5764    private static JCheckBox createCheckBox(String text, BooleanProperty property, String tooltip) {
    5865        JCheckBox cb = new JCheckBox(text, property.get());
     66        cb.setOpaque(false);
    5967        cb.setToolTipText(tooltip);
    6068        return cb;
     
    6775    public CadastreDownloadSourcePanel(CadastreDownloadSource ds) {
    6876        super(ds);
     77        setBackground(BG_COLOR.get());
    6978        setLayout(new GridBagLayout());
    7079
Note: See TracChangeset for help on using the changeset viewer.