mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
dotted focus for win10 radio buttons
This commit is contained in:
+9
@@ -16,6 +16,7 @@
|
||||
package com.intellij.ide.ui.laf.intellij;
|
||||
|
||||
import com.intellij.ide.ui.laf.darcula.ui.DarculaRadioButtonUI;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.plaf.ComponentUI;
|
||||
@@ -40,4 +41,12 @@ public class WinIntelliJRadioButtonUI extends DarculaRadioButtonUI {
|
||||
final int y = (viewRect.height - icon.getIconHeight()) / 2;
|
||||
icon.paintIcon(c, g, x, y);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void paintFocus(Graphics g, Rectangle t, Dimension d) {
|
||||
g.setColor(getFocusColor());
|
||||
t.x -= 2; t.y -=1;
|
||||
t.width += 3; t.height +=2;
|
||||
UIUtil.drawDottedRectangle(g, t);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user