コード例 #1
0
  public Color getIconForeground() {

    Color c = iconForeground;

    if (getUseSystemColors()) {
      if (SubstanceUtils.isSubstanceInstalled()) {
        try {
          c = SubstanceUtils.getSubstanceColor(SubstanceUtils.MID_COLOR);
        } catch (Exception e) {
          c = UIManager.getColor("ProgressBar.foreground");
          e.printStackTrace();
        }
      } else {
        c = UIManager.getColor("ProgressBar.foreground");
      }
    }

    return c;
  }
コード例 #2
0
  public Color getIconBorderColor() {

    Color c = iconBorderColor;

    if (getUseSystemColors()) {
      if (SubstanceUtils.isSubstanceInstalled()) {
        try {
          c = SubstanceUtils.getSubstanceColor(SubstanceUtils.ULTRA_DARK_COLOR);
        } catch (Exception e) {
          c = UIManager.getColor("Label.foreground");
          e.printStackTrace();
        }
      } else {
        c = UIManager.getColor("Label.foreground");
      }
    }

    return c;
  }