private void paintRowData()

in idea-plugin/src/main/java/com/jetbrains/ide/streamdeck/customization/CustomizableActionsPanel.java [128:162]


  private void paintRowData(Tree tree, Object data, Rectangle bounds, Graphics2D g) {
    CustomizationUtilPatched.acceptObjectIconAndText(data, (text, description, icon) -> {
      if (description != null) {
        final GraphicsConfig config = GraphicsUtil.setupAAPainting(g);

        int totalWidth = 0;
        final FontMetrics metrics = tree.getFontMetrics(tree.getFont());
        totalWidth += metrics.stringWidth(description);
        totalWidth += 10;
//        totalWidth -= 5;

        int x = bounds.x + bounds.width - totalWidth;
        int fontHeight = (int)metrics.getMaxCharBounds(g).getHeight();

        Color c1 = new Color(206, 234, 176);
        Color c2 = new Color(126, 208, 82);

        g.translate(0, bounds.y - 1);

        int width = metrics.stringWidth(description);
        UIUtil.drawSearchMatch(g, x, x + width, bounds.height, c1, c2);
        g.setColor(Gray._50);
        g.drawString(description, x, fontHeight);

        x += width;
//        x += 10;
        g.translate(0, -bounds.y + 1);
        config.restore();
      }
    });




  }