Package com.intellij.ui

Examples of com.intellij.ui.JBColor


        } else {
            insideBorder = new EmptyBorder(3, 5, 3, 5);
            insideBorderFocused = new EmptyBorder(2, 4, 2, 4);

            defaultBorder = insideBorder;
            focusBorder = new CompoundBorder(new RoundedLineBorder(new JBColor(Gray._190, Gray._55), 3), insideBorderFocused);
        }

        label = new JLabel(text, cropIcon(icon), SwingConstants.LEFT);
        label.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        label.addMouseListener(mouseListener);
View Full Code Here


  JPanel getBugDetailsPanel() {
    if (_bugDetailsPanel == null) {
      final JScrollPane scrollPane = ScrollPaneFacade.createScrollPane(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      scrollPane.setViewportView(getBugDetailsPane());
      //scrollPane.setBorder(BorderFactory.createCompoundBorder(new EmptyBorder(0, 0, 0, 3), new CustomLineBorder(new Color(98, 95, 89), 0, 0, 1, 1)));
      scrollPane.setBorder(new CustomLineBorder(new JBColor(new Color(98, 95, 89), new Color(53, 51, 48)), 0, 0, 1, 0));
      //scrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));

      _bugDetailsPanel = new JPanel();
      _bugDetailsPanel.setBorder(new EmptyBorder(3, 2, 0, 3));
      _bugDetailsPanel.setLayout(new BorderLayout());
View Full Code Here

  JPanel getBugExplanationPanel() {
    if (_explanationPanel == null) {
      final JScrollPane scrollPane = ScrollPaneFacade.createScrollPane(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      scrollPane.setViewportView(getExplanationPane());
      scrollPane.setBorder(BorderFactory.createCompoundBorder(new CustomLineBorder(new JBColor(new Color(208, 206, 203), new Color(170, 168, 165)), 1, 0, 0, 0), new CustomLineBorder(new JBColor(new Color(98, 95, 89), new Color(71, 68, 62)), 1, 0, 0, 0)));

      _explanationPanel = new JPanel();
      _explanationPanel.setBorder(new EmptyBorder(0, 2, 0, 3));
      _explanationPanel.setLayout(new BorderLayout());
      _explanationPanel.add(scrollPane, BorderLayout.CENTER);
View Full Code Here

    super(messageText, new Date());
  }

  protected ConsoleViewContentType getTextAttributes() {
    return new ConsoleViewContentType("SelfText",
        new TextAttributes(new JBColor(Gray._100, Gray._140), UIUtil.getListBackground(), UIUtil.getListBackground(), null, Font.PLAIN)) {
    };
  }
View Full Code Here

        rangeHighlighters.clear();
    }

    protected void applyHighlight(ArrayList<ArrayList<Integer>> ranges, String username, String path, Boolean force, int textLength, int userID) {
        final TextAttributes attributes = new TextAttributes();
        JBColor color = Colors.getColorForUser(username);
        attributes.setEffectColor(color);
        attributes.setEffectType(EffectType.SEARCH_MATCH);
        attributes.setBackgroundColor(color);
        attributes.setForegroundColor(Colors.getFGColor());
View Full Code Here

        if (when == null) {
            when = new Date();
        }
        String displayNick = nick;
        if (!nick.equals("*error*") && !nick.equals("*status*")) {
            JBColor color = Colors.getColorForUser(nick);
            String rgba = Colors.getHex(color);
            displayNick = String.format(" <span style=\"background-color:%s;color:white;\">&nbsp;</span> %s ", rgba, nick);
        }
        return String.format("<span style=\"color:gray;\">[%s]</span> <b>%s</b>: ", new SimpleDateFormat("HH:mm:ss").format(when), displayNick);
    }
View Full Code Here

        new JBColor(new Color(0,128,128,alpha),new Color(0,128,128,alpha)),
        new JBColor(new Color(255,255,0,alpha),new Color(255,255,0,alpha)),
    };

    public static JBColor getFGColor() {
        return new JBColor(new Color(255,255,255,255),new Color(255,255,255,255));
    }
View Full Code Here

  }

  @NotNull
  @Override
  public Color getRootsGroupColor() {
    return new JBColor(new Color(165, 108, 206), new Color(165, 108, 206));
  }
View Full Code Here

TOP

Related Classes of com.intellij.ui.JBColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.