    001// License: GPL. For details, see LICENSE file.
    002package org.openstreetmap.josm.plugins.streetside.utils;
    003
    004import java.awt.Color;
    005
    006import javax.swing.JComponent;
    007
    008public final class StreetsideColorScheme {
    009  /**
    010   * Color for unselected images
    011   */
    012  public static final Color SEQ_UNSELECTED = new Color(0x00ccd1);
    013  /**
    014   * Color for the camera angle indicator of images in unselected sequences
    015   */
    016  public static final Color SEQ_UNSELECTED_CA = new Color(0x4169e1);
    017  /**
    018   * Color for the marker of images in a selected sequence
    019   */
    020  public static final Color SEQ_SELECTED = new Color(0x00b5f5);
    021  /**
    022   * Color for the camera angle indicator of images in selected sequences
    023   */
    024  public static final Color SEQ_SELECTED_CA = new Color(0x8b008b);
    025  /**
    026   * Color for the marker of currently selected images
    027   */
    028  public static final Color SEQ_HIGHLIGHTED = new Color(0xf5811a);
    029  /**
    030   * Color for the camera angle indicator of the currently selected images
    031   */
    032  public static final Color SEQ_HIGHLIGHTED_CA = new Color(0xf5b81a);
    033
    034  public static final Color SEQ_IMPORTED_SELECTED = new Color(0xdddddd);
    035  public static final Color SEQ_IMPORTED_SELECTED_CA = SEQ_IMPORTED_SELECTED.brighter();
    036  public static final Color SEQ_IMPORTED_UNSELECTED = new Color(0x999999);
    037  public static final Color SEQ_IMPORTED_UNSELECTED_CA = SEQ_IMPORTED_UNSELECTED.brighter();
    038  public static final Color SEQ_IMPORTED_HIGHLIGHTED = new Color(0xbb2222);
    039  public static final Color SEQ_IMPORTED_HIGHLIGHTED_CA = SEQ_IMPORTED_HIGHLIGHTED.brighter();
    040
    041  public static final Color STREETSIDE_BLUE = new Color(0x0000ff);
    042  public static final Color TOOLBAR_DARK_GREY = new Color(0x242528);
    043
    044  public static final Color IMAGEDETECTION_TRAFFICSIGN = new Color(0xffc01b);
    045  public static final Color IMAGEDETECTION_UNKNOWN = new Color(0x33bb44);
    046
    047  private StreetsideColorScheme() {
    048    // Private constructor to avoid instantiation
    049  }
    050
    051  /**
    052   * Styles the given components as default panels (currently only the background is set to white)
    053   * @param components the components to style as default panels (e.g. checkboxes also, that's why
    054   *   not only JPanels are accepted)
    055   */
    056  public static void styleAsDefaultPanel(JComponent... components) {
    057    if (components != null && components.length >= 1) {
    058      for (JComponent component : components) {
    059        component.setBackground(Color.WHITE);
    060      }
    061    }
    062  }
    063}