HiDPI: fix radio button center oval (light theme)
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Wed, 16 Nov 2016 17:43:04 +0000 (20:43 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Wed, 16 Nov 2016 17:43:55 +0000 (20:43 +0300)
platform/platform-impl/src/com/intellij/ide/ui/laf/darcula/ui/DarculaRadioButtonUI.java

index 15a2b6a5b5832ce3ca2253f5fb9deab8b630244d..2523b746581cf025f7b0811aafc3650ed1848e14 100644 (file)
@@ -106,7 +106,7 @@ public class DarculaRadioButtonUI extends MetalRadioButtonUI {
     if (!UIUtil.isUnderDarcula() && selected) {
       final GraphicsConfig fillOvalConf = new GraphicsConfig(g);
       g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
-      g.fillOval(0, 1, w, h);
+      g.fillOval(0, JBUI.scale(1), w, h);
       fillOvalConf.restore();
     } else {
       if (focus) {