All Downloads are FREE. Search and download functionalities are using the official Maven repository.

editor.LabDarkScheme Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package editor;

import java.awt.*;

/**
 */
public class LabDarkScheme extends Scheme
{
  public static final String NAME = "Dark";

  @Override
  public boolean isDark()
  {
    return true;
  }

  @Override
  public String splash()
  {
    return "images/splash3.png";
  }

  private static final Color ORANGE = new Color( 251, 166, 0 );

  private static final Color WHITISH = new Color( 187, 187, 187 );
  private static final Color BLACKISH = new Color( 43, 43, 43 );
  private static final Color LIGHTER_BLACKISH = new Color( 49, 51, 53 );

  private static final Color CONTROL_LIGHT = WHITISH; //UIManager.getColor( "controlLtHighlight" );
  /* colors */
  private static final Color TOOLTIP_TEXT = WHITISH; //  UIManager.getColor( "infoText" );
  private static final Color WINDOW = BLACKISH;
  private static final Color WINDOW_TEXT = WHITISH;
  private static final Color WINDOW_BORDER = new Color( 49, 106, 197 ); //new Color( 100, 100, 100 );
  private static final Color TEXT_HIGHLIGHT = new Color( 0, 70, 132 );
  private static final Color TEXT_HIGHLIGHT_TEXT = WHITISH;
  private static final Color TEXT_TEXT = Color.black;
  private static final Color XP_BORDER_COLOR = new Color( 49, 106, 197 );
  private static final Color XP_HIGHLIGHT_TOGGLE_COLOR = new Color( 225, 230, 232 );
  private static final Color XP_HIGHLIGHT_SELECTED_COLOR = new Color( 0, 50, 94 );
  private static final Color ACTIVE_CAPTION = new Color( 0, 70, 132 );
  private static final Color XP_HIGHLIGHT_COLOR = ACTIVE_CAPTION;//new Color( 190, 205, 224 );
  private static final Color ACTIVE_CAPTION_TEXT = WHITISH;

  private static final Color USAGE_READ_HIGHLIGHT_COLOR = new Color( 0, 74, 102 );
  private static final Color USAGE_READ_HIGHLIGHT_SHADOW_COLOR = new Color( 0, 140, 200 );
  private static final Color USAGE_WRITE_HIGHLIGHT_COLOR = new Color( 99, 0, 84 );
  private static final Color USAGE_WRITE_HIGHLIGHT_SHADOW_COLOR = new Color( 200, 0, 160 );
  private static final Color SCOPE_HIGHLIGHT_COLOR = new Color( 0, 40, 110 );

  private static final Color CONTROL = new Color( 60, 63, 65 );
  private static final Color CONTROL_HIGHLIGHT = new Color( 130, 130, 130 );
  private static final Color CONTROL_LIGHT_SHADOW = new Color( 70, 73, 75 );
  private static final Color CONTROL_SHADOW = new Color( 50, 53, 55 );
  private static final Color CONTROL_DARKSHADOW = new Color( 49, 49, 49 );
  private static final Color CONTROL_DISABLED_TEXT = new Color( 140, 140, 140 );
  private static final Color CONTROL_TEXT = new Color( 187, 187, 187 );

  private static final Color BORDER = new Color( 122, 122, 122 );

  private static final Color TREE_HANDLE_BORDER = new Color( 128, 128, 128 );

  private static final Color SCROLLBAR_BORDER = CONTROL_DARKSHADOW;

  private static final Color SEPARATOR_1 = new Color( 0, 0, 0, 0 ); // transparent
  private static final Color SEPARATOR_2 = BORDER;

  private static final Color MENU = CONTROL;
  private static final Color MENU_TEXT = WINDOW_TEXT;

  private static final Color MENU_BORDER = SEPARATOR_2;

  public static final Color TOOLTIP_BACKGROUND = MENU; //  UIManager.getColor( "info" );

  private static final Color COLOR_BREAKPOINT = new Color( 255, 0, 0, 50 );
  private static final Color COLOR_EXECPOINT = new Color( 0, 255, 0, 50 );
  private static final Color COLOR_FRAMEPOINT = new Color( 128, 128, 128, 50 );

  private static final Color COLOR_ERROR = new Color( 226, 83, 70 );
  private static final Color COLOR_ERROR_SHADOW = new Color( 193, 44, 36 );
  private static final Color COLOR_WARNING = new Color( 255, 240, 0 );
  private static final Color COLOR_WARNING_SHADOW = new Color( 234, 190, 0 );

    // Code editor
  private static final Color CODE_WINDOW = WINDOW;
  private static final Color CODE_WINDOW_TEXT = new Color( 192, 210, 192 );
  private static final Color CODE_COMMENT = new Color( 128, 128, 0 );
  private static final Color CODE_MULTILINE_COMMENT = CODE_COMMENT;
  private static final Color CODE_STRING_LITERAL = new Color( 192, 192, 0 );
  private static final Color CODE_NUMBER_LITERAL = new Color( 120, 120, 192 );
  private static final Color CODE_KEYWORDS = new Color( 120, 192, 120 );
  private static final Color CODE_ERROR = new Color( 192, 80, 0 );
  private static final Color CODE_WARNING = Color.gray;
  private static final Color CODE_DEPRECATED = CODE_WINDOW_TEXT;
  private static final Color CODE_OPERATOR = CODE_WINDOW_TEXT;
  private static final Color CODE_TYPE_LITERAL = new Color( 120, 192, 192 );
  private static final Color CODE_TYPE_LITERAL_NESTED = CODE_TYPE_LITERAL;

  @Override
  public Color getCodeWindow()
  {
    return CODE_WINDOW;
  }

  @Override
  public Color getCodeWindowText()
  {
    return CODE_WINDOW_TEXT;
  }

  @Override
  public Color getCodeComment()
  {
    return CODE_COMMENT;
  }

  @Override
  public Color getCodeMultilineComment()
  {
    return CODE_MULTILINE_COMMENT;
  }

  @Override
  public Color getCodeStringLiteral()
  {
    return CODE_STRING_LITERAL;
  }

  @Override
  public Color getCodeNumberLiteral()
  {
    return CODE_NUMBER_LITERAL;
  }

  @Override
  public Color getCodeKeyword()
  {
    return CODE_KEYWORDS;
  }

  @Override
  public Color getCodeError()
  {
    return CODE_ERROR;
  }

  @Override
  public Color getCodeWarning()
  {
    return CODE_WARNING;
  }

  @Override
  public Color getCodeDeprecated()
  {
    return CODE_DEPRECATED;
  }

  @Override
  public Color getCodeOperator()
  {
    return CODE_OPERATOR;
  }

  @Override
  public Color getCodeTypeLiteral()
  {
    return CODE_TYPE_LITERAL;
  }

  @Override
  public Color getCodeTypeLiteralNested()
  {
    return CODE_TYPE_LITERAL_NESTED;
  }


  @Override
  public Color getActiveCaption()
  {
    return ACTIVE_CAPTION;
  }

  @Override
  public Color getXpHighlightColor()
  {
    return XP_HIGHLIGHT_COLOR;
  }

  @Override
  public Color getActiveCaptionText()
  {
    return ACTIVE_CAPTION_TEXT;
  }

  @Override
  public Color getSeparator1()
  {
    return SEPARATOR_1;
  }

  @Override
  public Color getSeparator2()
  {
    return SEPARATOR_2;
  }

  @Override
  public Color getControl()
  {
    return CONTROL;
  }

  @Override
  public Color getControlLight()
  {
    return CONTROL_LIGHT;
  }

  @Override
  public Color getControlDarkshadow()
  {
    return CONTROL_DARKSHADOW;
  }

  @Override
  public Color getControlHighlight()
  {
    return CONTROL_HIGHLIGHT;
  }

  @Override
  public Color getControlLigthShadow()
  {
    return CONTROL_LIGHT_SHADOW;
  }

  @Override
  public Color getControlShadow()
  {
    return CONTROL_SHADOW;
  }

  @Override
  public Color getControlText()
  {
    return CONTROL_TEXT;
  }

  @Override
  public Color getControlDisabledText()
  {
    return CONTROL_DISABLED_TEXT;
  }

  @Override
  public Color getToggleButtonBorderColor()
  {
    return getControlHighlight();
  }

  @Override
  public Color getTooltipBackground()
  {
    return TOOLTIP_BACKGROUND;
  }

  @Override
  public Color getTooltipText()
  {
    return TOOLTIP_TEXT;
  }

  @Override
  public Color getTreeHandleBorderColor()
  {
    return TREE_HANDLE_BORDER;
  }

  @Override
  public Color getWindow()
  {
    return WINDOW;
  }

  @Override
  public Color getWindowText()
  {
    return WINDOW_TEXT;
  }

  @Override
  public Color getWindowBorder()
  {
    return WINDOW_BORDER;
  }

  @Override
  public Color getTextHighlight()
  {
    return TEXT_HIGHLIGHT;
  }

  @Override
  public Color getTextHighlightText()
  {
    return TEXT_HIGHLIGHT_TEXT;
  }

  @Override
  public Color getTextText()
  {
    return TEXT_TEXT;
  }

  @Override
  public Color getXpBorderColor()
  {
    return XP_BORDER_COLOR;
  }

  @Override
  public Color getXpHighlightToggleColor()
  {
    return XP_HIGHLIGHT_TOGGLE_COLOR;
  }

  @Override
  public Color getXpHighlightSelectedColor()
  {
    return XP_HIGHLIGHT_SELECTED_COLOR;
  }

  @Override
  public Color getBreakpointColor()
  {
    return COLOR_BREAKPOINT;
  }

  @Override
  public Color getExecBreakpoint()
  {
    return COLOR_EXECPOINT;
  }

  @Override
  public Color getFrameBreakpoint()
  {
    return COLOR_FRAMEPOINT;
  }

  @Override
  public Color getColorError()
  {
    return COLOR_ERROR;
  }

  @Override
  public Color getColorErrorShadow()
  {
    return COLOR_ERROR_SHADOW;
  }

  @Override
  public Color getColorWarning()
  {
    return COLOR_WARNING;
  }

  @Override
  public Color getColorWarningShadow()
  {
    return COLOR_WARNING_SHADOW;
  }

  @Override
  public Color getMenu()
  {
    return MENU;
  }

  @Override
  public Color getMenuText()
  {
    return MENU_TEXT;
  }

  @Override
  public Color getMenuBorder()
  {
    return MENU_BORDER;
  }

  @Override
  public Color getScrollbarBorderColor()
  {
    return SCROLLBAR_BORDER;
  }

  @Override
  public Color getButtonBorderColor()
  {
    return getControlText();
  }

  @Override
  public Color usageReadHighlightColor()
  {
    return USAGE_READ_HIGHLIGHT_COLOR;
  }
  @Override
  public Color usageReadHighlightShadowColor()
  {
    return USAGE_READ_HIGHLIGHT_SHADOW_COLOR;
  }
  @Override

  public Color usageWriteHighlightColor()
  {
    return USAGE_WRITE_HIGHLIGHT_COLOR;
  }
  @Override
  public Color usageWriteHighlightShadowColor()
  {
    return USAGE_WRITE_HIGHLIGHT_SHADOW_COLOR;
  }

  @Override
  public Color scopeHighlightColor()
  {
    return SCOPE_HIGHLIGHT_COLOR;
  }

  @Override
  public Color getFieldBorderColor()
  {
    return BORDER;
  }

  @Override
  public Color debugVarRedText()
  {
    return new Color( 255, 76, 76 );
  }
  @Override
  public Color debugVarGreenText()
  {
    return new Color( 76, 255, 76 );
  }
  @Override
  public Color debugVarBlueText()
  {
    return new Color( 76, 164, 255 );
  }

  @Override
  public Color getLineNumberColor()
  {
    return new Color( 96, 99, 102);
  }

  public Color getAdviceColumnBackground()
  {
    return LIGHTER_BLACKISH;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy