mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
HiDPI: fix radio button center oval
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ public class DarculaRadioButtonUI extends MetalRadioButtonUI {
|
||||
if (b.isSelected()) {
|
||||
final boolean enabled = b.isEnabled();
|
||||
g.setColor(UIManager.getColor(enabled ? "RadioButton.darcula.selectionEnabledShadowColor" : "RadioButton.darcula.selectionDisabledShadowColor"));// ? Gray._30 : Gray._60);
|
||||
final int yOff = 2;
|
||||
final int yOff = 1 + JBUI.scale(1);
|
||||
g.fillOval(w/2 - rad/2, h/2 - rad/2 + yOff , rad, rad);
|
||||
g.setColor(UIManager.getColor(enabled ? "RadioButton.darcula.selectionEnabledColor" : "RadioButton.darcula.selectionDisabledColor")); //Gray._170 : Gray._120);
|
||||
g.fillOval(w/2 - rad/2, h/2 - rad/2 -1 + yOff, rad, rad);
|
||||
|
||||
Reference in New Issue
Block a user