IDEA-151765 HiDPI display: small code analysis icons in the editor
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Tue, 16 Feb 2016 16:47:00 +0000 (19:47 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Tue, 16 Feb 2016 16:47:00 +0000 (19:47 +0300)
platform/analysis-api/src/com/intellij/codeHighlighting/HighlightDisplayLevel.java

index 5a19b12710323a038116861159c2850ceef4ab71..ff997163025017552f1e572203ec85a7802aa804 100644 (file)
@@ -180,7 +180,9 @@ public class HighlightDisplayLevel {
     @Override
     public void paintIcon(Component c, Graphics g, int x, int y) {
       g.setColor(getColor());
-      g.fillRect(x + 2, y + 2, 10, 10);
+      int shift = JBUI.scale(2);
+      int size = JBUI.scale(10);
+      g.fillRect(x + shift, y + shift, size, size);
     }
 
     @Override